summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/attachdiag.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/mail2/attachdiag.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/attachdiag.cpp10
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
@@ -57,12 +57,12 @@ void AttachDiag::fileSelected(const DocLnk &file)
57 57
58DocLnk AttachDiag::getFile(QWidget *parent) 58DocLnk AttachDiag::getFile(QWidget *parent)
59{ 59{
60 AttachDiag *attach = new AttachDiag(parent, 0, true); 60 AttachDiag attach(parent, 0, true);
61 attach->showMaximized(); 61 attach.showMaximized();
62 attach->show(); 62 attach.show();
63 63
64 if (QDialog::Accepted == attach->exec()) { 64 if (QDialog::Accepted == attach.exec()) {
65 return attach->currentFile; 65 return attach.currentFile;
66 } 66 }
67 67
68 return DocLnk(); 68 return DocLnk();