]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Start an anchored selection when restoring the selected items to make it possible
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 18 Feb 2017 21:00:22 +0000 (22:00 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 18 Feb 2017 21:00:22 +0000 (22:00 +0100)
that the selection can be changed after reloading of the current view.

Otherwise it is not possible to alter the selection without restarting a new
one.

Bug found by Martin Tobias Holmedahl Sandsmark
See also RR 128563

src/views/dolphinview.cpp

index bf806055bf79cb62014eb0d74d2e1b82d92877e3..63f6252ed41cf177a6118c76e5ccce6097d637d3 100644 (file)
@@ -1371,6 +1371,7 @@ void DolphinView::updateViewState()
             }
         }
 
+        selectionManager->beginAnchoredSelection(selectionManager->currentItem());
         selectionManager->setSelectedItems(selectedItems);
     }
 }