diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 45722dce..0a99ad6f 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -1389,7 +1389,7 @@ void ArticleView::playSound() return link;})(); )"; webview->page()->runJavaScript( variable, [ this ]( const QVariant & result ) { - if ( result.type() == QVariant::String ) { + if ( result.typeId() == qMetaTypeId< QString >() ) { QString soundScript = result.toString(); if ( !soundScript.isEmpty() ) openLink( QUrl::fromEncoded( soundScript.toUtf8() ), webview->url() );