summaryrefslogtreecommitdiff
path: root/examples/browser/bookmarks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/browser/bookmarks.cpp')
-rw-r--r--examples/browser/bookmarks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/browser/bookmarks.cpp b/examples/browser/bookmarks.cpp
index f32be69..57dac2e 100644
--- a/examples/browser/bookmarks.cpp
+++ b/examples/browser/bookmarks.cpp
@@ -96,7 +96,7 @@ void BookmarksManager::load()
return;
m_loaded = true;
- QString dir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
+ QString dir = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
QString bookmarkFile = dir + QLatin1String("/bookmarks.xbel");
if (!QFile::exists(bookmarkFile))
bookmarkFile = QLatin1String(":defaultbookmarks.xbel");
@@ -160,7 +160,7 @@ void BookmarksManager::save() const
return;
XbelWriter writer;
- QString dir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
+ QString dir = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
QString bookmarkFile = dir + QLatin1String("/bookmarks.xbel");
if (!writer.write(bookmarkFile, m_bookmarkRootNode))
qWarning() << "BookmarkManager: error saving to" << bookmarkFile;