author | alwin <alwin> | 2003-12-28 02:45:07 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-28 02:45:07 (UTC) |
commit | d1a7eb08cad465c5fc0de53f75aaecf7803f0945 (patch) (side-by-side diff) | |
tree | 422b73af760cdd44e4fbbc96bd6876a15939ff19 /noncore/net/mail/newmaildir.cpp | |
parent | e889485e945d8fa9564566f286114be10d2a1ce5 (diff) | |
download | opie-d1a7eb08cad465c5fc0de53f75aaecf7803f0945.zip opie-d1a7eb08cad465c5fc0de53f75aaecf7803f0945.tar.gz opie-d1a7eb08cad465c5fc0de53f75aaecf7803f0945.tar.bz2 |
- dir handling for mbox accounts (delete, new, delete all mail)
- fixed memory leaks in mbox account class
- reduced count of used string constants while using "tr" with context string
- mbox displays messages into global status bar
- fixed a possible raise condition when deleting a mail directory
Diffstat (limited to 'noncore/net/mail/newmaildir.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/newmaildir.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/mail/newmaildir.cpp b/noncore/net/mail/newmaildir.cpp index 3fc66f4..ab0d4e3 100644 --- a/noncore/net/mail/newmaildir.cpp +++ b/noncore/net/mail/newmaildir.cpp @@ -1,33 +1,37 @@ #include "newmaildir.h" #include <qdialog.h> #include <qvariant.h> #include <qlineedit.h> #include <qcheckbox.h> -Newmdirdlg::Newmdirdlg( QWidget* parent, const char* name) +Newmdirdlg::Newmdirdlg( QWidget* parent, const char* name,bool no_sub) : Newmdirdlgui(parent,name,true),ndir(""),possible_subs(false) { + if (no_sub) { + subdirsPossibleBox->setChecked(false); + subdirsPossibleBox->hide(); + } } Newmdirdlg::~Newmdirdlg() { } void Newmdirdlg::accept() { ndir = dirnameEdit->text(); possible_subs = subdirsPossibleBox->isChecked(); if (ndir.isEmpty()) { return; } Newmdirdlgui::accept(); } const QString&Newmdirdlg::Newdir()const { return ndir; } const bool Newmdirdlg::subpossible()const { return possible_subs; |