summaryrefslogtreecommitdiffstats
path: root/examples/xml
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-09-03 12:15:48 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-09-03 12:15:48 (GMT)
commit77bc072f5b93e43f38eeb31d966fa76a3f6bd61c (patch)
treea37f6fde27f48d945988695eebfde401356eb746 /examples/xml
parent74e29f6eaec3831ac373270101d8ad8a53fe4471 (diff)
downloadQt-77bc072f5b93e43f38eeb31d966fa76a3f6bd61c.zip
Qt-77bc072f5b93e43f38eeb31d966fa76a3f6bd61c.tar.gz
Qt-77bc072f5b93e43f38eeb31d966fa76a3f6bd61c.tar.bz2
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
Diffstat (limited to 'examples/xml')
-rw-r--r--examples/xml/saxbookmarks/mainwindow.cpp5
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"),