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

[GreaseMonkey] Fixed crash when deleting userscript.

This commit is contained in:
nowrep 2013-03-05 21:40:34 +01:00
parent 21d201752d
commit cc93b67002

View File

@ -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);
} }
} }