mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +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
9e8ed7af1e
commit
78dd4c9ce9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue