From b4eb2132ef5b2d1706bef6f53d0f24d2b1e9e8ff Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Sep 2010 08:21:36 +0000 Subject: Add ability to launch default browser git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1175948 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kio/kio/krun.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ); -- cgit v1.2.1