summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-02-14 23:33:53 +0300
committerMichele Calgaro <[email protected]>2024-02-22 18:29:30 +0900
commit8064b0ca876e973bc855eb6ecbf6b63c1d0cdad8 (patch)
tree3aaf7f6f9283494aff592f6b9c51adfd9d0efd83
parent30981c12c4ad5eb1d7e9cfcd9ef0168c008df93b (diff)
downloadgwenview-8064b0ca876e973bc855eb6ecbf6b63c1d0cdad8.tar.gz
gwenview-8064b0ca876e973bc855eb6ecbf6b63c1d0cdad8.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 <[email protected]> (cherry picked from commit 6ca60fdaa34563e0eb1087df86ba4b8c8a85b1ad)
-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();
}