Summary: | in an splited view of the same directory, with a file selected in a view, create a folder in the other view, result: lot of files are selected | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Jaime Torres <jtamate> |
Component: | view-engine: general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | emmanuelpescosta099 |
Priority: | NOR | Keywords: | regression |
Version: | 2.1.80 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-baseapps/7769d8123611ebc538e6b965f674a3daa0019928 | Version Fixed In: | 4.9.4 |
Sentry Crash Report: | |||
Attachments: | Proposed fix |
Description
Jaime Torres
2012-11-16 17:11:51 UTC
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 |