┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.cpp
diff options
context:
space:
mode:
authorJordi Polo <[email protected]>2008-11-12 14:48:55 +0000
committerJordi Polo <[email protected]>2008-11-12 14:48:55 +0000
commit576e998dcd2dcc7c3d992843b2c271d1ef8c13fa (patch)
treee28e936c737a5418a3123f6bb472de1073383268 /src/dolphinviewcontainer.cpp
parente98e218564694ccca6c0a2962e56ffb7256a11ea (diff)
Launch Konqueror if the user enters an unsupported protocol
BUG:171626 svn path=/trunk/KDE/kdebase/apps/; revision=883279
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
-rw-r--r--src/dolphinviewcontainer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index 82ed40d41..6795aca9b 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -42,6 +42,7 @@
#include <konq_fileitemcapabilities.h>
#include <konq_operations.h>
#include <kurl.h>
+#include <krun.h>
#include "dolphinmodel.h"
#include "dolphincolumnview.h"
@@ -357,7 +358,9 @@ void DolphinViewContainer::restoreView(const KUrl& url)
} else {
// The URL navigator only checks for validity, not
// if the URL can be listed.
- showErrorMessage(i18nc("@info:status", "Protocol not supported"));
+ showErrorMessage(i18nc("@info:status", "Protocol not supported by Dolphin, Konqueror has been launched"));
+ QString command = "konqueror " + url.pathOrUrl();
+ KRun::runCommand(command, "konqueror", "konqueror", this);
}
}