From 3d0ddada81e7a1805c7a80ee4ffff6f598c13b25 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 26 May 2008 13:21:06 +0000 Subject: [PATCH] Accept URLs that have no hostname (such as smb:/ and zeroconf:/) as type NetworkLocation too. This makes it possible to type zeroconf:/ in krunner and load the associated program (Dolphin in my case), just like in KDE 3. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812822 --- runnercontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runnercontext.cpp b/runnercontext.cpp index 8ae27bead..398f1de7c 100644 --- a/runnercontext.cpp +++ b/runnercontext.cpp @@ -88,7 +88,7 @@ class RunnerContext::Private : public QSharedData type = Executable; } else { KUrl url(term); - if (!url.protocol().isEmpty() && !url.host().isEmpty()) { + if (!url.protocol().isEmpty()) { type = NetworkLocation; } else if (QFile::exists(path)) { QFileInfo info(path);