mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
90e1e4e9f0
commit
e7793132e8
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue