author | conber <conber> | 2002-06-15 20:16:02 (UTC) |
---|---|---|
committer | conber <conber> | 2002-06-15 20:16:02 (UTC) |
commit | e782feb7418fbf956547b9abb59afdde00745442 (patch) (unidiff) | |
tree | 2eec1348e7d13c7b7f6db8e5d377cea0403ee43e /noncore/unsupported/mail2/libmail/mailfactory.cpp | |
parent | b15f8a613d83a2f3957fef515e20981f636b908b (diff) | |
download | opie-e782feb7418fbf956547b9abb59afdde00745442.zip opie-e782feb7418fbf956547b9abb59afdde00745442.tar.gz opie-e782feb7418fbf956547b9abb59afdde00745442.tar.bz2 |
added message box
Diffstat (limited to 'noncore/unsupported/mail2/libmail/mailfactory.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/libmail/mailfactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/unsupported/mail2/libmail/mailfactory.cpp b/noncore/unsupported/mail2/libmail/mailfactory.cpp index 58cf5f8..427e72c 100644 --- a/noncore/unsupported/mail2/libmail/mailfactory.cpp +++ b/noncore/unsupported/mail2/libmail/mailfactory.cpp | |||
@@ -97,13 +97,13 @@ MailFactory::MailFactory(SendMail &smail, QWidget *parent) | |||
97 | _body += "Content-Disposition: attachment; filename=\"" + (*it).newName() + "\"\n"; | 97 | _body += "Content-Disposition: attachment; filename=\"" + (*it).newName() + "\"\n"; |
98 | if (!(*it).description().isEmpty()) | 98 | if (!(*it).description().isEmpty()) |
99 | _body += "Content-Description: " + (*it).description() + "\n"; | 99 | _body += "Content-Description: " + (*it).description() + "\n"; |
100 | 100 | ||
101 | _body += "\n" + MiscFunctions::encodeBase64(file) + "\n"; | 101 | _body += "\n" + MiscFunctions::encodeBase64(file) + "\n"; |
102 | } else { | 102 | } else { |
103 | int ret = QMessageBox::critical(_parent, tr("Error"), tr("<p>Couldn't attach file '%1'. Continue anyway or abort?</p>"), 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 == 1) { |
105 | it = attachments.end(); | 105 | it = attachments.end(); |
106 | _abort = true; | 106 | _abort = true; |
107 | } | 107 | } |
108 | } | 108 | } |
109 | } | 109 | } |