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,34 +1,38 @@ #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; } |