Handle missing Escargot profile URL
This commit is contained in:
@@ -785,6 +785,12 @@ QString KMessShared::htmlUnescape( const QString &string )
|
||||
*/
|
||||
void KMessShared::openBrowser( const QUrl &url )
|
||||
{
|
||||
if( url.isEmpty() || ! url.isValid() )
|
||||
{
|
||||
kmWarning() << "Refusing to open invalid URL:" << url;
|
||||
return;
|
||||
}
|
||||
|
||||
// Open the options
|
||||
KConfigGroup group = KMessConfig::instance()->getGlobalConfig( "General" );
|
||||
|
||||
@@ -842,7 +848,10 @@ void KMessShared::openBrowser( const QUrl &url )
|
||||
#ifdef KMESSDEBUG_SHARED_OPENEXTERNAL
|
||||
kmDebug() << "KDE default browser selected.";
|
||||
#endif
|
||||
QDesktopServices::openUrl( url );
|
||||
if( ! QDesktopServices::openUrl( url ) )
|
||||
{
|
||||
kmWarning() << "Unable to open URL with the desktop services:" << url;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user