summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-17 22:33:59 +0300
committerAlexander Golubev <fatzer2@gmail.com>2024-02-17 22:36:27 +0300
commit5c1e2e423c3ab68af1d2a2361b14c6b7bd249dd4 (patch)
treea3718969acb364e68e200359137b823c26cffe54 /src
parentd4548234b93404404e8807ac6fe5c671faad68f2 (diff)
downloadgwenview-5c1e2e423c3ab68af1d2a2361b14c6b7bd249dd4.tar.gz
gwenview-5c1e2e423c3ab68af1d2a2361b14c6b7bd249dd4.zip
Keep an item in browse mode selected when switchng views
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/gvcore/fileviewcontroller.cpp2
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();
}