1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Don't add user stylesheet script when usercss is empty

This commit is contained in:
David Rosca 2016-05-27 11:03:40 +02:00
parent c5987f039d
commit a515d92211

View File

@ -1089,6 +1089,9 @@ void MainApplication::setUserStyleSheet(const QString &filePath)
m_webProfile->scripts()->remove(oldScript);
}
if (userCss.isEmpty())
return;
QWebEngineScript script;
script.setName(name);
script.setInjectionPoint(QWebEngineScript::DocumentReady);