mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #7583 from zzmp/log/bookmarks-exists
Do not warn if no bookmarks file
This commit is contained in:
commit
2ee5b45ca6
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ bool Bookmarks::contains(const QString& name) const {
|
||||||
void Bookmarks::readFromFile() {
|
void Bookmarks::readFromFile() {
|
||||||
QFile loadFile(_bookmarksFilename);
|
QFile loadFile(_bookmarksFilename);
|
||||||
|
|
||||||
|
if (!loadFile.exists()) {
|
||||||
|
// User has not yet saved bookmarks
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!loadFile.open(QIODevice::ReadOnly)) {
|
if (!loadFile.open(QIODevice::ReadOnly)) {
|
||||||
qWarning("Couldn't open bookmarks file for reading");
|
qWarning("Couldn't open bookmarks file for reading");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue