From 77bc072f5b93e43f38eeb31d966fa76a3f6bd61c Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 3 Sep 2009 15:15:48 +0300 Subject: Saxbookmarks bookmarks folder fixed for Symbian. Changed Saxbookmarks to look for bookmarks from installation drive instead of current drive, as current drive will always be C:/ by default. Task-number: 260731 Reviewed-by: Janne Anttila --- examples/xml/saxbookmarks/mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/xml') diff --git a/examples/xml/saxbookmarks/mainwindow.cpp b/examples/xml/saxbookmarks/mainwindow.cpp index cdc9e72bc3..6ee259bed5 100644 --- a/examples/xml/saxbookmarks/mainwindow.cpp +++ b/examples/xml/saxbookmarks/mainwindow.cpp @@ -67,7 +67,10 @@ MainWindow::MainWindow() void MainWindow::open() { #if defined(Q_OS_SYMBIAN) - QDir::setCurrent("/Data/qt/saxbookmarks"); + // Always look for bookmarks on the same drive where the application is installed to. + QString bookmarksFolder = QCoreApplication::applicationFilePath().left(1); + bookmarksFolder.append(":/Data/qt/saxbookmarks"); + QDir::setCurrent(bookmarksFolder); #endif QString fileName = QFileDialog::getOpenFileName(this, tr("Open Bookmark File"), -- cgit v1.2.3