Select the correct item in places-panel, when a directory is opened.

BUG: 304541
REVIEW: 106074
FIXED-IN: 4.9.1
(cherry picked from commit 1ec8de2c61)
This commit is contained in:
Emmanuel Pescosta 2012-08-18 15:11:53 +02:00
parent 9e8ed7af1e
commit 78dd4c9ce9

View file

@ -62,6 +62,16 @@ PlacesPanel::~PlacesPanel()
bool PlacesPanel::urlChanged() bool PlacesPanel::urlChanged()
{ {
if (!url().isValid() || url().protocol().contains("search")) {
// Skip results shown by a search, as possible identical
// directory names are useless without parent-path information.
return false;
}
if (m_controller) {
selectClosestItem();
}
return true; return true;
} }