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:
parent
53b31ea912
commit
304f1704d2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user