mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +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() {
|
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