]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Don't request any meta data, if the requested URL is equal to the currently shown...
[dolphin.git] / src / dolphinmainwindow.cpp
index 48278312fcaf52527dde6d2190bf4fba4a0dd0ee..20d130ed3d08c652f9612b6ed9617aeb27d8eb14 100644 (file)
@@ -58,6 +58,7 @@
 #include <kio/netaccess.h>
 #include <kinputdialog.h>
 #include <klocale.h>
+#include <kprotocolmanager.h>
 #include <kmenu.h>
 #include <kmenubar.h>
 #include <kmessagebox.h>
@@ -200,7 +201,7 @@ void DolphinMainWindow::pasteIntoFolder()
 
 void DolphinMainWindow::changeUrl(const KUrl& url)
 {
-    if (url.protocol().isEmpty()) {
+    if (!KProtocolManager::supportsListing(url)) {
         // The URL navigator only checks for validity, not
         // if the URL can be listed. An error message is
         // shown due to DolphinViewContainer::restoreView().