1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 02:52: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 1fe3bed362
commit 00df74bd64

View File

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