]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix DolphinView regression in 4.6: Keep renamed items visible
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 19 May 2011 12:09:37 +0000 (14:09 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 19 May 2011 12:15:33 +0000 (14:15 +0200)
Commit 78669f2a57ecfb547019383deadf4aeac7d20070 introduced a regression
in DolphinView which disabled the automatic scrolling after a rename
operation to keep the renamed item visible. This commit reverts a part
of that change to re-enable the feature.
CCBUG: 273600
FIXED-IN: 4.6.4
(cherry picked from commit 54f34a941f85efa659392a06b14fee86f1420bf5)

src/views/dolphinview.cpp

index 6108c9d4a105475fe9b50c0831a8175543d12edf..1df86439c7329fbaecd0f95ae9e6f32967a3885d 100644 (file)
@@ -609,6 +609,10 @@ void DolphinView::renameSelectedItems()
         dialog->raise();
         dialog->activateWindow();
     }
         dialog->raise();
         dialog->activateWindow();
     }
+
+    // assure that the current index remains visible when KDirLister
+    // will notify the view about changed items
+    m_assureVisibleCurrentIndex = true;
 }
 
 void DolphinView::trashSelectedItems()
 }
 
 void DolphinView::trashSelectedItems()