Commit 9c1a1d87 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix memory leak and crash in ManageSieveScriptsDialog

parent ca27705b
......@@ -152,6 +152,9 @@ ManageSieveScriptsDialog::~ManageSieveScriptsDialog()
{
KConfigGroup group(KSharedConfig::openConfig(), "ManageSieveScriptsDialog");
group.writeEntry("Size", size());
// prevent QTreeWidget signals triggered by it's desctructor from calling our slots
d->mTreeView->disconnect(this);
delete d;
}
void ManageSieveScriptsDialog::hideEvent(QHideEvent *event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment