summaryrefslogtreecommitdiff
path: root/noncore
authorgroucho <groucho>2003-05-07 06:55:30 (UTC)
committer groucho <groucho>2003-05-07 06:55:30 (UTC)
commit00894537decf01c5a5cdc565b2740b5e67a2e90f (patch) (unidiff)
tree159404aa880f36961247287cdb42c19e4c4ef29f /noncore
parenta3c1989c0563c0b16c5a6e722cd8484611622499 (diff)
downloadopie-00894537decf01c5a5cdc565b2740b5e67a2e90f.zip
opie-00894537decf01c5a5cdc565b2740b5e67a2e90f.tar.gz
opie-00894537decf01c5a5cdc565b2740b5e67a2e90f.tar.bz2
Smaller fix which shows attachment icons also for downloaded mails
Diffstat (limited to 'noncore') (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
@@ -458,25 +458,29 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
458 while ((item != NULL)&&(!found)) 458 while ((item != NULL)&&(!found))
459 { 459 {
460 mailPtr = item->getMail(); 460 mailPtr = item->getMail();
461 if (mailPtr->id == newMail.id) { 461 if (mailPtr->id == newMail.id) {
462 item->setMail(newMail); 462 item->setMail(newMail);
463 emit mailUpdated(item->getMail()); 463 emit mailUpdated(item->getMail());
464 found = true; 464 found = true;
465 } 465 }
466 item = (EmailListItem *) item->nextSibling(); 466 item = (EmailListItem *) item->nextSibling();
467 } 467 }
468 } 468 }
469 if ((!found)||(fromDisk)) item = new EmailListItem(inboxView, newMail, TRUE); 469 if ((!found)||(fromDisk)) item = new EmailListItem(inboxView, newMail, TRUE);
470 470
471 if (item->getMail()->files.count()>0)
472 {
473 item->setPixmap(0, Resource::loadPixmap("mailit/attach"));
474 }
471 /*if (!newMail.downloaded) 475 /*if (!newMail.downloaded)
472 mailDownloadList.sizeInsert(newMail.serverId, newMail.size);*/ 476 mailDownloadList.sizeInsert(newMail.serverId, newMail.size);*/
473 477
474 mailboxView->setCurrentTab(0); 478 mailboxView->setCurrentTab(0);
475 479
476} 480}
477 481
478void EmailClient::allMailArrived(int count) 482void EmailClient::allMailArrived(int count)
479{ 483{
480 // not previewing means all mailtransfer has been done 484 // not previewing means all mailtransfer has been done
481 /*if (!previewingMail) {*/ 485 /*if (!previewingMail) {*/
482 if ( (allAccounts) && ( (currentAccount = accountList.next()) !=0 ) ) { 486 if ( (allAccounts) && ( (currentAccount = accountList.next()) !=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
@@ -458,25 +458,29 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
458 while ((item != NULL)&&(!found)) 458 while ((item != NULL)&&(!found))
459 { 459 {
460 mailPtr = item->getMail(); 460 mailPtr = item->getMail();
461 if (mailPtr->id == newMail.id) { 461 if (mailPtr->id == newMail.id) {
462 item->setMail(newMail); 462 item->setMail(newMail);
463 emit mailUpdated(item->getMail()); 463 emit mailUpdated(item->getMail());
464 found = true; 464 found = true;
465 } 465 }
466 item = (EmailListItem *) item->nextSibling(); 466 item = (EmailListItem *) item->nextSibling();
467 } 467 }
468 } 468 }
469 if ((!found)||(fromDisk)) item = new EmailListItem(inboxView, newMail, TRUE); 469 if ((!found)||(fromDisk)) item = new EmailListItem(inboxView, newMail, TRUE);
470 470
471 if (item->getMail()->files.count()>0)
472 {
473 item->setPixmap(0, Resource::loadPixmap("mailit/attach"));
474 }
471 /*if (!newMail.downloaded) 475 /*if (!newMail.downloaded)
472 mailDownloadList.sizeInsert(newMail.serverId, newMail.size);*/ 476 mailDownloadList.sizeInsert(newMail.serverId, newMail.size);*/
473 477
474 mailboxView->setCurrentTab(0); 478 mailboxView->setCurrentTab(0);
475 479
476} 480}
477 481
478void EmailClient::allMailArrived(int count) 482void EmailClient::allMailArrived(int count)
479{ 483{
480 // not previewing means all mailtransfer has been done 484 // not previewing means all mailtransfer has been done
481 /*if (!previewingMail) {*/ 485 /*if (!previewingMail) {*/
482 if ( (allAccounts) && ( (currentAccount = accountList.next()) !=0 ) ) { 486 if ( (allAccounts) && ( (currentAccount = accountList.next()) !=0 ) ) {