From: Emmanuel Pescosta Date: Sat, 18 Aug 2012 13:11:53 +0000 (+0200) Subject: Select the correct item in places-panel, when a directory is opened. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/9a8ffbe1d0b7209ac5ef7f1b9eb05326802af574?ds=inline Select the correct item in places-panel, when a directory is opened. BUG: 304541 REVIEW: 106074 --- 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; }