summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/composer.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/mail2/composer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/composer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/composer.cpp b/noncore/unsupported/mail2/composer.cpp
index 7f65dba..c36d973 100644
--- a/noncore/unsupported/mail2/composer.cpp
+++ b/noncore/unsupported/mail2/composer.cpp
@@ -20,7 +20,7 @@
20AttachViewItem::AttachViewItem(QListView *parent, Attachment &attachment) 20AttachViewItem::AttachViewItem(QListView *parent, Attachment &attachment)
21 : QListViewItem(parent), _attachment(attachment) 21 : QListViewItem(parent), _attachment(attachment)
22{ 22{
23 setPixmap(0, _attachment.docLnk()->pixmap().isNull() ? Resource::loadPixmap("UnknownDocument-14") : _attachment.docLnk()->pixmap()); 23 setPixmap(0, _attachment.docLnk().pixmap().isNull() ? Resource::loadPixmap("UnknownDocument-14") : _attachment.docLnk().pixmap());
24 setText(0, _attachment.newName().isEmpty() ? _attachment.fileName() : _attachment.newName()); 24 setText(0, _attachment.newName().isEmpty() ? _attachment.fileName() : _attachment.newName());
25 setText(1, _attachment.description()); 25 setText(1, _attachment.description());
26} 26}
@@ -231,7 +231,7 @@ void Composer::slotAddAttach()
231 Attachment attachment; 231 Attachment attachment;
232 attachment.setFileName(lnk.file()); 232 attachment.setFileName(lnk.file());
233 attachment.setNewName(lnk.name()); 233 attachment.setNewName(lnk.name());
234 attachment.setDocLnk(&lnk); 234 attachment.setDocLnk(lnk);
235 235
236 (void) new AttachViewItem(attachView, attachment); 236 (void) new AttachViewItem(attachView, attachment);
237} 237}