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 90e1e4e9f0
commit e7793132e8

View file

@ -62,6 +62,16 @@ PlacesPanel::~PlacesPanel()
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;
}