Handle missing Escargot profile URL

This commit is contained in:
Mario Fetka
2026-07-06 13:14:56 +02:00
parent f9f479588f
commit 89b4218853
2 changed files with 23 additions and 2 deletions
+10 -1
View File
@@ -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;
}