mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
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:
parent
2c824aa6dc
commit
0db6747fc6
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue