mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[GreaseMonkey] Fixed crash when deleting userscript.
This commit is contained in:
parent
21d201752d
commit
cc93b67002
|
@ -76,8 +76,8 @@ void GM_Settings::removeItem(QListWidgetItem* item)
|
||||||
tr("Are you sure you want to remove '%1'?").arg(script->name()),
|
tr("Are you sure you want to remove '%1'?").arg(script->name()),
|
||||||
QMessageBox::Yes | QMessageBox::No);
|
QMessageBox::Yes | QMessageBox::No);
|
||||||
|
|
||||||
if (button == QMessageBox::Yes && m_manager->removeScript(script)) {
|
if (button == QMessageBox::Yes) {
|
||||||
delete item;
|
m_manager->removeScript(script);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user