diff options
author | Alexander Golubev <[email protected]> | 2024-02-17 22:33:59 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-22 18:29:31 +0900 |
commit | d84beae42af5046defaa379865e994a47b56ba96 (patch) | |
tree | 26529b26526cf2f8b3297f38bd611522f80ec1c6 | |
parent | ad01a7f1f9dee617e1c41434000788e93e4a82bd (diff) | |
download | gwenview-d84beae42af5046defaa379865e994a47b56ba96.tar.gz gwenview-d84beae42af5046defaa379865e994a47b56ba96.zip |
Keep an item in browse mode selected when switchng views
Signed-off-by: Alexander Golubev <[email protected]>
(cherry picked from commit 5c1e2e423c3ab68af1d2a2361b14c6b7bd249dd4)
-rw-r--r-- | src/gvcore/fileviewcontroller.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp index 40ec6ea..1a1005a 100644 --- a/src/gvcore/fileviewcontroller.cpp +++ b/src/gvcore/fileviewcontroller.cpp @@ -721,6 +721,7 @@ void FileViewController::slotViewDoubleClicked() { void FileViewController::updateViewMode() { + KFileItem* currentItem=currentFileView()->currentFileItem(); if (mListMode->isChecked()) { setMode(FILE_LIST); return; @@ -744,6 +745,7 @@ void FileViewController::updateViewMode() { mFileThumbnailView->setShownFileItem(shownFileItem); } + browseTo(currentItem); updateThumbnailSize(mSizeSlider->value()); mFileThumbnailView->startThumbnailUpdate(); } |