Commit 9edbeffe authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix potential crash

parent 90ba3d7b
...@@ -668,7 +668,7 @@ void MessageActions::annotateMessage() ...@@ -668,7 +668,7 @@ void MessageActions::annotateMessage()
return; return;
} }
PimCommon::AnnotationEditDialog *dialog = new PimCommon::AnnotationEditDialog(mCurrentItem); QPointer<PimCommon::AnnotationEditDialog> dialog = new PimCommon::AnnotationEditDialog(mCurrentItem, mParent);
dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->exec(); dialog->exec();
} }
......
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