1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +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 1fe3bed362
commit 00df74bd64

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);