1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 18:26:34 +01:00

GreaseMonkey: Don't load invalid scripts.

This commit is contained in:
nowrep 2013-02-24 10:48:23 +01:00
parent 53b31ea912
commit 304f1704d2

View File

@ -231,6 +231,11 @@ void GM_Manager::load()
const QString &absolutePath = gmDir.absoluteFilePath(fileName);
GM_Script* script = new GM_Script(this, absolutePath);
if (!script->isValid()) {
delete script;
continue;
}
if (m_disabledScripts.contains(script->fullName())) {
script->setEnabled(false);
}