mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Do not warn if no bookmarks file
This commit is contained in:
parent
7c6c75c484
commit
cba866b375
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ bool Bookmarks::contains(const QString& name) const {
|
|||
void Bookmarks::readFromFile() {
|
||||
QFile loadFile(_bookmarksFilename);
|
||||
|
||||
if (!loadFile.exists()) {
|
||||
// User has not yet saved bookmarks
|
||||
return;
|
||||
}
|
||||
|
||||
if (!loadFile.open(QIODevice::ReadOnly)) {
|
||||
qWarning("Couldn't open bookmarks file for reading");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue