Preserve selected items when changing folders
Review Request #128563 - Created July 31, 2016 and discarded
|Martin Tobias Holmedahl Sandsmark|
|dfaure, elvisangelaccio, emmanuelp, sune|
Instead of just clearing the selection when going back and forth in history, it now preserves the selected items.
Another bug it fixes is if you enter a folder, go back, and then hold down shift and press an arrow key to try to select something.
add another bug it fixes
I hope that this is more understandable than my previous attempt.
Move this code to
QTimer::singleShot(0, this, &DolphinView::updateViewState)and
I don't know what of boths approaches is the nicer one (maybe 1. because it doesn't rely on the event queue ordering), but it's up to you ;)
This makes sure that the member variables (m_selectedUrls, ...) are restored before DolphinView::updateViewState() gets invoked and we can avoid the work-around in
DolphinView::updateViewStatedoes this already. Can be removed.