summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-14 23:33:53 +0300
committerAlexander Golubev <fatzer2@gmail.com>2024-02-17 22:36:27 +0300
commit6ca60fdaa34563e0eb1087df86ba4b8c8a85b1ad (patch)
treebfd9b868d08a83f4c0265de2acd4b811fb5858e7 /src/app
parent32098c8e56997c977f27cd1e2e2c6495d176c0ad (diff)
downloadgwenview-6ca60fdaa34563e0eb1087df86ba4b8c8a85b1ad.tar.gz
gwenview-6ca60fdaa34563e0eb1087df86ba4b8c8a85b1ad.zip
avoid waiting for dir cache when opening a file
At least this will eliminate the most annoying part of the bug there the file won't be displayed till the dir cache is completely loaded. Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/gwenview/issues/17 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src/app')
-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();
}