Commit 78dd4c9c authored by Emmanuel Pescosta's avatar Emmanuel Pescosta

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 1ec8de2c)
parent 9e8ed7af
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment