Commit 27a23da0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix delete dialog

parent e44ddebf
......@@ -77,8 +77,10 @@ QString SnippetSelectorWidget::customEntry(const QString &text)
QPointer<SnippetCustomFileAttachmentNameDialog> dlg = new SnippetCustomFileAttachmentNameDialog(this);
QString result;
if (dlg->exec()) {
return dlg->result();
result = dlg->result();
return {};
delete dlg;
return result;
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