avoid infinite loop when the service configured as the default

browser doesn't exist (bnc#623478)


svn path=/trunk/KDE/kdebase/apps/; revision=1172570
This commit is contained in:
Luboš Luňák 2010-09-07 14:33:41 +00:00
parent 2c824aa6dc
commit 0db6747fc6

View file

@ -333,7 +333,8 @@ bool ClientApp::createNewWindow(const KUrl & url, bool newTab, bool tempFile, co
KConfig config(QLatin1String("kfmclientrc"));
KConfigGroup generalGroup(&config, "General");
const QString browserApp = generalGroup.readEntry("BrowserApplication");
if (!browserApp.isEmpty() && !browserApp.startsWith("!kfmclient"))
if (!browserApp.isEmpty() && !browserApp.startsWith("!kfmclient")
&& (browserApp.startsWith('!') || KService::serviceByStorageId(browserApp)))
{
kDebug() << "Using external browser" << browserApp;
Q_ASSERT( qApp );