diff options
| author | Peter Penz <[email protected]> | 2010-10-07 14:09:30 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-10-07 14:09:30 +0000 |
| commit | 431da0482caa72f90a6a04785383eb1d133f678e (patch) | |
| tree | f5f670aefb220aa5f735de6b3cf2c9b859f0b7aa /src/panels/folders/folderspanel.cpp | |
| parent | 06b0569613e918e5f73d762a54df041a38385195 (diff) | |
Internal cleanup for panels: Let the panel-implementations decide whether they accept an URL or not.
svn path=/trunk/KDE/kdebase/apps/; revision=1183480
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) |
