Keep an item in browse mode selected when switchng views

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 5c1e2e423c)
pull/34/head
Alexander Golubev 10 months ago committed by Michele Calgaro
parent ad01a7f1f9
commit d84beae42a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -721,6 +721,7 @@ void FileViewController::slotViewDoubleClicked() {
void FileViewController::updateViewMode() { void FileViewController::updateViewMode() {
KFileItem* currentItem=currentFileView()->currentFileItem();
if (mListMode->isChecked()) { if (mListMode->isChecked()) {
setMode(FILE_LIST); setMode(FILE_LIST);
return; return;
@ -744,6 +745,7 @@ void FileViewController::updateViewMode() {
mFileThumbnailView->setShownFileItem(shownFileItem); mFileThumbnailView->setShownFileItem(shownFileItem);
} }
browseTo(currentItem);
updateThumbnailSize(mSizeSlider->value()); updateThumbnailSize(mSizeSlider->value());
mFileThumbnailView->startThumbnailUpdate(); mFileThumbnailView->startThumbnailUpdate();
} }

Loading…
Cancel
Save