Commit f0e19f4b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prevent double delete of FolderSelectionDialog

Patch from Denis Kurz
https://phabricator.kde.org/D2600

Thanks
parent 7d3cf093
......@@ -102,9 +102,7 @@ void FolderRequester::slotOpenDialog()
options |= FolderSelectionDialog::HideOutboxFolder;
}
QScopedPointer<FolderSelectionDialog> dlg(
new FolderSelectionDialog(this, options));
QPointer<FolderSelectionDialog> dlg(new FolderSelectionDialog(this, options));
dlg->setWindowTitle(i18n("Select Folder"));
dlg->setModal(false);
dlg->setSelectedCollection(d->mCollection);
......@@ -112,6 +110,7 @@ void FolderRequester::slotOpenDialog()
if (dlg->exec() && dlg) {
setCollection(dlg->selectedCollection(), false);
}
delete dlg;
}
//-----------------------------------------------------------------------------
......
Supports Markdown
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