summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-07-27 08:57:51 +0200
committerMontel Laurent <[email protected]>2016-07-27 08:57:51 +0200
commitc3b7b7e4d89a6615bd4a3ddef579e3b09057632e (patch)
treef9cc897576ef66724be127982be2e75bc7e7a515
parentb5ebb5e496f6b5d1c7e18617e28619bd715b9430 (diff)
Fix mem leak
-rw-r--r--src/incidenceattachment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/incidenceattachment.cpp b/src/incidenceattachment.cpp
index db0982a..f889e1b 100644
--- a/src/incidenceattachment.cpp
+++ b/src/incidenceattachment.cpp
@@ -351,7 +351,7 @@ void IncidenceAttachment::editSelectedAttachments()
QPointer<AttachmentEditDialog> dialog(
new AttachmentEditDialog(attitem, mAttachmentView, false));
dialog->setModal(false);
- connect(dialog.data(), SIGNAL(hidden()), dialog.data(), SLOT(delayedDestruct()));
+ dialog->setAttribute(Qt::WA_DeleteOnClose, true);
dialog->show();
}
}