Diffstat (limited to 'noncore/unsupported/mail2/attachdiag.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/attachdiag.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/unsupported/mail2/attachdiag.cpp b/noncore/unsupported/mail2/attachdiag.cpp index bedf3c4..36e1948 100644 --- a/noncore/unsupported/mail2/attachdiag.cpp +++ b/noncore/unsupported/mail2/attachdiag.cpp @@ -54,18 +54,18 @@ void AttachDiag::fileSelected(const DocLnk &file) { currentFile = file; } DocLnk AttachDiag::getFile(QWidget *parent) { - AttachDiag *attach = new AttachDiag(parent, 0, true); - attach->showMaximized(); - attach->show(); + AttachDiag attach(parent, 0, true); + attach.showMaximized(); + attach.show(); - if (QDialog::Accepted == attach->exec()) { - return attach->currentFile; + if (QDialog::Accepted == attach.exec()) { + return attach.currentFile; } return DocLnk(); } |