diff options
| author | Emmanuel Pescosta <[email protected]> | 2012-08-18 15:11:53 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2012-08-23 21:42:08 +0200 |
| commit | 9a8ffbe1d0b7209ac5ef7f1b9eb05326802af574 (patch) | |
| tree | ce45d3ae931755c4542ddd0a9e8cfabd78bc5d2f /src | |
| parent | 9e203ab2b9a4315670bd8a0ad2f35d2c9e177e36 (diff) | |
Select the correct item in places-panel, when a directory is opened.
BUG: 304541
REVIEW: 106074
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/places/placespanel.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 429c5399a..d4450888e 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -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; } |
