mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-13 05:35:08 +02:00
Merge branch 'master' of github.com:highfidelity/hifi into update-collision-hulls-of-avatar-children
This commit is contained in:
commit
30d6734253
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