From 5c1e2e423c3ab68af1d2a2361b14c6b7bd249dd4 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sat, 17 Feb 2024 22:33:59 +0300 Subject: Keep an item in browse mode selected when switchng views Signed-off-by: Alexander Golubev --- src/gvcore/fileviewcontroller.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.1