-rw-r--r-- | noncore/unsupported/mail2/attachdiag.cpp | 4 | ||||
-rw-r--r-- | noncore/unsupported/mail2/attachdiag.h | 2 | ||||
-rw-r--r-- | noncore/unsupported/mail2/composer.cpp | 2 | ||||
-rw-r--r-- | noncore/unsupported/mail2/libmail/mailfactory.cpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/noncore/unsupported/mail2/attachdiag.cpp b/noncore/unsupported/mail2/attachdiag.cpp index 6e6c3d4..bedf3c4 100644 --- a/noncore/unsupported/mail2/attachdiag.cpp +++ b/noncore/unsupported/mail2/attachdiag.cpp | |||
@@ -56,7 +56,7 @@ void AttachDiag::fileSelected(const DocLnk &file) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | DocLnk AttachDiag::getFile() | 58 | DocLnk AttachDiag::getFile(QWidget *parent) |
59 | { | 59 | { |
60 | AttachDiag *attach = new AttachDiag(0, 0, true); | 60 | AttachDiag *attach = new AttachDiag(parent, 0, true); |
61 | attach->showMaximized(); | 61 | attach->showMaximized(); |
62 | attach->show(); | 62 | attach->show(); |
diff --git a/noncore/unsupported/mail2/attachdiag.h b/noncore/unsupported/mail2/attachdiag.h index c673cfc..bce5b4b 100644 --- a/noncore/unsupported/mail2/attachdiag.h +++ b/noncore/unsupported/mail2/attachdiag.h | |||
@@ -11,5 +11,5 @@ class AttachDiag : public QDialog | |||
11 | 11 | ||
12 | public: | 12 | public: |
13 | static DocLnk getFile(); | 13 | static DocLnk getFile(QWidget *parent); |
14 | 14 | ||
15 | protected: | 15 | protected: |
diff --git a/noncore/unsupported/mail2/composer.cpp b/noncore/unsupported/mail2/composer.cpp index 57f0779..82ed117 100644 --- a/noncore/unsupported/mail2/composer.cpp +++ b/noncore/unsupported/mail2/composer.cpp | |||
@@ -200,5 +200,5 @@ void Composer::slotOpenAddressPicker() | |||
200 | void Composer::slotAddAttach() | 200 | void Composer::slotAddAttach() |
201 | { | 201 | { |
202 | DocLnk lnk = AttachDiag::getFile(); | 202 | DocLnk lnk = AttachDiag::getFile(this); |
203 | if (lnk.name().isEmpty()) return; | 203 | if (lnk.name().isEmpty()) return; |
204 | 204 | ||
diff --git a/noncore/unsupported/mail2/libmail/mailfactory.cpp b/noncore/unsupported/mail2/libmail/mailfactory.cpp index 427e72c..6602919 100644 --- a/noncore/unsupported/mail2/libmail/mailfactory.cpp +++ b/noncore/unsupported/mail2/libmail/mailfactory.cpp | |||
@@ -102,7 +102,7 @@ MailFactory::MailFactory(SendMail &smail, QWidget *parent) | |||
102 | } else { | 102 | } else { |
103 | int ret = QMessageBox::critical(_parent, tr("Error"), tr("<p>Couldn't attach file '%1'. Continue anyway or abort?</p>").arg((*it).fileName()), tr("Continue"), tr("Abort")); | 103 | int ret = QMessageBox::critical(_parent, tr("Error"), tr("<p>Couldn't attach file '%1'. Continue anyway or abort?</p>").arg((*it).fileName()), tr("Continue"), tr("Abort")); |
104 | if (ret == 1) { | 104 | if (ret != 0) { |
105 | it = attachments.end(); | ||
106 | _abort = true; | 105 | _abort = true; |
106 | break; | ||
107 | } | 107 | } |
108 | } | 108 | } |