diff options
Diffstat (limited to 'src/panels/folders/folderspanel.cpp')
| -rw-r--r-- | src/panels/folders/folderspanel.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/panels/folders/folderspanel.cpp b/src/panels/folders/folderspanel.cpp index 134d8ba7e..fae7ca6a1 100644 --- a/src/panels/folders/folderspanel.cpp +++ b/src/panels/folders/folderspanel.cpp @@ -103,23 +103,20 @@ void FoldersPanel::rename(const KFileItem& item) } } -void FoldersPanel::setUrl(const KUrl& url) +bool FoldersPanel::urlChanged() { - if (!url.isValid() || (url == Panel::url())) { - return; - } - - if (url.protocol().contains("search")) { + 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; + return false; } - Panel::setUrl(url); if (m_dirLister != 0) { m_setLeafVisible = true; - loadTree(url); + loadTree(url()); } + + return true; } void FoldersPanel::showEvent(QShowEvent* event) |
