summaryrefslogtreecommitdiffstats
path: root/kio
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-16 08:21:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-16 08:21:36 +0000
commitb4eb2132ef5b2d1706bef6f53d0f24d2b1e9e8ff (patch)
treef62713aa35835f0f3322eb109c16182bdd73376f /kio
parent70331186c82001a2652bf40e01d49dc8a8ac3a4b (diff)
downloadtdelibs-b4eb2132ef5b2d1706bef6f53d0f24d2b1e9e8ff.tar.gz
tdelibs-b4eb2132ef5b2d1706bef6f53d0f24d2b1e9e8ff.zip
Add ability to launch default browser
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1175948 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio')
-rw-r--r--kio/kio/krun.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kio/kio/krun.cpp b/kio/kio/krun.cpp
index f02ced30d..72de2eb46 100644
--- a/kio/kio/krun.cpp
+++ b/kio/kio/krun.cpp
@@ -980,7 +980,8 @@ void KRun::init()
bool ok = false;
KURL::List urls;
- urls.append( m_strURL );
+ if (!((m_strURL.protocol().startsWith("http")) && (m_strURL.url() == "http://default.browser")))
+ urls.append( m_strURL );
if (exec.isEmpty())
{
exec = KProtocolInfo::exec( m_strURL.protocol() );