summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp
index 78cd0ed..7b5e292 100644
--- a/src/app/mainwindow.cpp
+++ b/src/app/mainwindow.cpp
@@ -243,9 +243,9 @@ void MainWindow::openURL(const KURL& url) {
mFileViewController->setDirURL(url);
mFileViewController->setFocus();
} else {
- mDocument->setURL(url);
mFileViewController->setDirURL(url.upURL());
mFileViewController->setFileNameToSelect(url.filename());
+ mDocument->setURL(url);
mImageViewController->setFocus();
}