-rw-r--r-- | noncore/net/mail/accountitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/accountitem.cpp b/noncore/net/mail/accountitem.cpp index 4869df8..10db2c6 100644 --- a/noncore/net/mail/accountitem.cpp +++ b/noncore/net/mail/accountitem.cpp | |||
@@ -894,49 +894,49 @@ MHfolderItem::MHfolderItem(const FolderP& folderInit, MHfolderItem *parent, QLis | |||
894 | mbox = master; | 894 | mbox = master; |
895 | initName(); | 895 | initName(); |
896 | } | 896 | } |
897 | 897 | ||
898 | void MHfolderItem::initName() | 898 | void MHfolderItem::initName() |
899 | { | 899 | { |
900 | QString bName = folder->getDisplayName(); | 900 | QString bName = folder->getDisplayName(); |
901 | if (bName.startsWith("/")&&bName.length()>1) | 901 | if (bName.startsWith("/")&&bName.length()>1) |
902 | { | 902 | { |
903 | bName.replace(0,1,""); | 903 | bName.replace(0,1,""); |
904 | } | 904 | } |
905 | int pos = bName.findRev("/"); | 905 | int pos = bName.findRev("/"); |
906 | if (pos > 0) | 906 | if (pos > 0) |
907 | { | 907 | { |
908 | bName.replace(0,pos+1,""); | 908 | bName.replace(0,pos+1,""); |
909 | } | 909 | } |
910 | if (bName.lower() == "outgoing") | 910 | if (bName.lower() == "outgoing") |
911 | { | 911 | { |
912 | setPixmap( 0, PIXMAP_OUTBOXFOLDER ); | 912 | setPixmap( 0, PIXMAP_OUTBOXFOLDER ); |
913 | } | 913 | } |
914 | else if (bName.lower() == "inbox") | 914 | else if (bName.lower() == "inbox") |
915 | { | 915 | { |
916 | setPixmap( 0, PIXMAP_INBOXFOLDER); | 916 | setPixmap( 0, PIXMAP_INBOXFOLDER); |
917 | } else if (bName.lower() == "drafts") { | 917 | } else if (bName.lower() == "drafts") { |
918 | setPixmap(0, Resource::loadPixmap("inline/edit")); | 918 | setPixmap(0, Resource::loadPixmap("edit")); |
919 | } else { | 919 | } else { |
920 | setPixmap( 0, PIXMAP_MBOXFOLDER ); | 920 | setPixmap( 0, PIXMAP_MBOXFOLDER ); |
921 | } | 921 | } |
922 | setText( 0, bName ); | 922 | setText( 0, bName ); |
923 | } | 923 | } |
924 | 924 | ||
925 | const FolderP&MHfolderItem::getFolder()const | 925 | const FolderP&MHfolderItem::getFolder()const |
926 | { | 926 | { |
927 | return folder; | 927 | return folder; |
928 | } | 928 | } |
929 | 929 | ||
930 | void MHfolderItem::refresh(QValueList<RecMailP>&target) | 930 | void MHfolderItem::refresh(QValueList<RecMailP>&target) |
931 | { | 931 | { |
932 | if (folder->may_select()) | 932 | if (folder->may_select()) |
933 | mbox->getWrapper()->listMessages( folder->getName(),target ); | 933 | mbox->getWrapper()->listMessages( folder->getName(),target ); |
934 | } | 934 | } |
935 | 935 | ||
936 | RECBODYP MHfolderItem::fetchBody(const RecMailP&aMail) | 936 | RECBODYP MHfolderItem::fetchBody(const RecMailP&aMail) |
937 | { | 937 | { |
938 | return mbox->getWrapper()->fetchBody(aMail); | 938 | return mbox->getWrapper()->fetchBody(aMail); |
939 | } | 939 | } |
940 | 940 | ||
941 | void MHfolderItem::deleteFolder() | 941 | void MHfolderItem::deleteFolder() |
942 | { | 942 | { |