diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 680a24fde..a9dd960d0 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -743,7 +743,7 @@ QString MainWindow::lastUsedDir() settings.beginGroup("FileDialog"); if (settings.contains("LastDir")) - if (QDir::setCurrent(settings.value("LastDir").toString())) + if (QDir(settings.value("LastDir").toString()).exists()) lastDir = settings.value("LastDir").toString(); return lastDir; } |