diff options
author | Alexander Golubev <[email protected]> | 2024-02-14 23:33:53 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-22 18:29:30 +0900 |
commit | 8064b0ca876e973bc855eb6ecbf6b63c1d0cdad8 (patch) | |
tree | 3aaf7f6f9283494aff592f6b9c51adfd9d0efd83 | |
parent | 30981c12c4ad5eb1d7e9cfcd9ef0168c008df93b (diff) | |
download | gwenview-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.cpp | 2 |
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(); } |