in an splited view of the same directory, with a file selected in a view, create a folder in the other view, result: all the files until the one previously selected are now selected. tested with HEAD from 2012-11-09. Reproducible: Always Steps to Reproduce: 1. spit dolphin in a directory with some files (and/or directories) 2. select a file (not the first one in incons view, sorted by name) in one view 3. create a new folder in the other view. Actual Results: all the files up to the old selected one are now selected, and the view position has changed. Expected Results: only the previously selected file keeps selected (and optionally, the view position doesn't change).
Thanks, I can confirm this problem.
The unexpected selection (which can even happen without splitting the view, just select any item and then create a new folder using, e.g., F10) is a regression caused by https://projects.kde.org/projects/kde/kde-baseapps/repository/revisions/b25059e803e7eed54f0593605a4066882d63bce2 I currently don't have a good idea how to fix this without bringing the other bug back - will have to think about this. But we should definitely fix this before 4.9.4 is tagged. I agree that the "current item" change in the other view is also sort of unexpected, but this is a different issue.
One could clear the selection in void DolphinView::observeCreatedItem(const KUrl& url), but then the selection would be cleared in *all* DolphinViews when a folder is created in one of them, this is not a good solution either :-(
Created attachment 75329 [details] Proposed fix Makes sure that the new created item is only made the current and selected item in the active view.
I've applied the patch. It works, and it solves both problems!!! the selection and the view position.
Git commit 7769d8123611ebc538e6b965f674a3daa0019928 by Frank Reininghaus. Committed on 18/11/2012 at 16:22. Pushed by freininghaus into branch 'KDE/4.9'. Only select a created item and make it 'current' in the active view The 'make the new item the current one in all views' issue has been around for quite some time, the unexpected selection was a recent regression caused by commit b25059e803e7eed54f0593605a4066882d63bce2. Thanks to Jaime Torres for finding the regression early and for testing this patch! FIXED-IN: 4.9.4 M +5 -2 dolphin/src/views/dolphinview.cpp http://commits.kde.org/kde-baseapps/7769d8123611ebc538e6b965f674a3daa0019928