Commit 8e8a9b1f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Create dialog on stack

parent 73ea6af5
Pipeline #82793 passed with stage
in 18 minutes and 24 seconds
...@@ -60,10 +60,9 @@ QString SieveEditorParsingMissingFeatureWarning::initialScript() const ...@@ -60,10 +60,9 @@ QString SieveEditorParsingMissingFeatureWarning::initialScript() const
void SieveEditorParsingMissingFeatureWarning::slotShowDetails(const QString &content) void SieveEditorParsingMissingFeatureWarning::slotShowDetails(const QString &content)
{ {
if (content == QLatin1String("sieveerrordetails")) { if (content == QLatin1String("sieveerrordetails")) {
QPointer<SieveScriptParsingErrorDialog> dlg = new SieveScriptParsingErrorDialog(this); SieveScriptParsingErrorDialog dlg(this);
dlg->setError(mScript, mErrors); dlg.setError(mScript, mErrors);
dlg->exec(); dlg.exec();
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