From 9454ac48a53f3b49e03288311b71436ccacd2d04 Mon Sep 17 00:00:00 2001 From: alwin Date: Wed, 10 Mar 2004 22:44:44 +0000 Subject: some bugfixes When edit a mail to send and cancel is pressed the mail can stored in a draft folder and later edit again. This moment we will not store attachments into drafts. --- (limited to 'noncore/net/mail/accountview.cpp') diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index 4375044..7938d4f 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp @@ -168,3 +168,10 @@ void AccountView::downloadMails(Folder*fromFolder,AbstractMail*fromWrapper) fromWrapper->mvcpAllMails(fromFolder,targetFolder,targetMail,sels.moveMails()); refreshCurrent(); } + +bool AccountView::currentisDraft() +{ + AccountViewItem *view = static_cast(currentItem()); + if (!view) return false; + return view->isDraftfolder(); +} -- cgit v0.9.0.2