diff options
| author | Peter Penz <[email protected]> | 2008-10-07 22:05:55 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-07 22:05:55 +0000 |
| commit | c617050efb38c08f63a81cc49877996a5004808f (patch) | |
| tree | ec2728c1df15c55f9b46769572d3f2c0f14bff62 /src/dolphinviewcontainer.cpp | |
| parent | 0ee9ee0ea801c3d427b263153cfb20db041ec727 (diff) | |
improvement to previous commit: check whether the URL can be listed by asking the protocol manager (thanks to David Faure for the hint)
svn path=/trunk/KDE/kdebase/apps/; revision=869022
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 89ed54aca..bed7d2758 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -350,12 +350,12 @@ void DolphinViewContainer::activate() void DolphinViewContainer::restoreView(const KUrl& url) { - if (url.protocol().isEmpty()) { + if (KProtocolManager::supportsListing(url)) { + m_view->updateView(url, m_urlNavigator->savedRootUrl()); + } else { // The URL navigator only checks for validity, not // if the URL can be listed. - showErrorMessage(i18nc("@info:status", "Protocol not supported")); - } else { - m_view->updateView(url, m_urlNavigator->savedRootUrl()); + showErrorMessage(i18nc("@info:status", "Protocol not supported")); } } |
