mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36: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);
|
const QString &absolutePath = gmDir.absoluteFilePath(fileName);
|
||||||
GM_Script* script = new GM_Script(this, absolutePath);
|
GM_Script* script = new GM_Script(this, absolutePath);
|
||||||
|
|
||||||
|
if (!script->isValid()) {
|
||||||
|
delete script;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_disabledScripts.contains(script->fullName())) {
|
if (m_disabledScripts.contains(script->fullName())) {
|
||||||
script->setEnabled(false);
|
script->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user