diff options
| author | Peter Penz <[email protected]> | 2008-10-07 20:29:18 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-07 20:29:18 +0000 |
| commit | 0ee9ee0ea801c3d427b263153cfb20db041ec727 (patch) | |
| tree | bfef6fb38ddaf3b46b54b085bc877c3a4e2f8511 /src/dolphinmainwindow.cpp | |
| parent | f0b8e6518506c7d3b8d2beb2b391d6f4301608cf (diff) | |
If an URL cannot be listed, just let the view and the panels show the last listable URL. This prevents having an empty view and empty panels when typing a wrong URL.
BUG: 170695
svn path=/trunk/KDE/kdebase/apps/; revision=868984
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 718615222..48278312f 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -200,6 +200,13 @@ void DolphinMainWindow::pasteIntoFolder() void DolphinMainWindow::changeUrl(const KUrl& url) { + if (url.protocol().isEmpty()) { + // The URL navigator only checks for validity, not + // if the URL can be listed. An error message is + // shown due to DolphinViewContainer::restoreView(). + return; + } + DolphinViewContainer* view = activeViewContainer(); if (view != 0) { view->setUrl(url); |
