summaryrefslogtreecommitdiff
authorgroucho <groucho>2003-05-07 06:55:30 (UTC)
committer groucho <groucho>2003-05-07 06:55:30 (UTC)
commit00894537decf01c5a5cdc565b2740b5e67a2e90f (patch) (side-by-side diff)
tree159404aa880f36961247287cdb42c19e4c4ef29f
parenta3c1989c0563c0b16c5a6e722cd8484611622499 (diff)
downloadopie-00894537decf01c5a5cdc565b2740b5e67a2e90f.zip
opie-00894537decf01c5a5cdc565b2740b5e67a2e90f.tar.gz
opie-00894537decf01c5a5cdc565b2740b5e67a2e90f.tar.bz2
Smaller fix which shows attachment icons also for downloaded mails
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mailit/emailclient.cpp6
-rw-r--r--noncore/unsupported/mailit/emailclient.cpp6
2 files changed, 10 insertions, 2 deletions
diff --git a/noncore/net/mailit/emailclient.cpp b/noncore/net/mailit/emailclient.cpp
index 2cedc51..b039cc4 100644
--- a/noncore/net/mailit/emailclient.cpp
+++ b/noncore/net/mailit/emailclient.cpp
@@ -466,9 +466,13 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
item = (EmailListItem *) item->nextSibling();
}
}
if ((!found)||(fromDisk)) item = new EmailListItem(inboxView, newMail, TRUE);
-
+
+ if (item->getMail()->files.count()>0)
+ {
+ item->setPixmap(0, Resource::loadPixmap("mailit/attach"));
+ }
/*if (!newMail.downloaded)
mailDownloadList.sizeInsert(newMail.serverId, newMail.size);*/
mailboxView->setCurrentTab(0);
diff --git a/noncore/unsupported/mailit/emailclient.cpp b/noncore/unsupported/mailit/emailclient.cpp
index 2cedc51..b039cc4 100644
--- a/noncore/unsupported/mailit/emailclient.cpp
+++ b/noncore/unsupported/mailit/emailclient.cpp
@@ -466,9 +466,13 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
item = (EmailListItem *) item->nextSibling();
}
}
if ((!found)||(fromDisk)) item = new EmailListItem(inboxView, newMail, TRUE);
-
+
+ if (item->getMail()->files.count()>0)
+ {
+ item->setPixmap(0, Resource::loadPixmap("mailit/attach"));
+ }
/*if (!newMail.downloaded)
mailDownloadList.sizeInsert(newMail.serverId, newMail.size);*/
mailboxView->setCurrentTab(0);