Commit 6f4e071d authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Don't compare a pluginId with a plugin name

parent 1bf1bd27
......@@ -220,7 +220,7 @@ bool WebEnginePage::shouldOpenLocalUrl(const QUrl& url) const
QString partToUse;
bool success = success = QMetaObject::invokeMethod(bi, "partForLocalFile", Q_RETURN_ARG(QString, partToUse), Q_ARG(QString, url.path()));
if (success) {
return partToUse == m_part->metaData().name();
return partToUse == m_part->metaData().pluginId();
}
}
return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment