diff options
Diffstat (limited to 'examples/xml/saxbookmarks/mainwindow.cpp')
-rw-r--r-- | examples/xml/saxbookmarks/mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/xml/saxbookmarks/mainwindow.cpp b/examples/xml/saxbookmarks/mainwindow.cpp index cdc9e72..6ee259b 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"), |