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 @@ | |||
1 | #include "newmaildir.h" | 1 | #include "newmaildir.h" |
2 | #include <qdialog.h> | 2 | #include <qdialog.h> |
3 | #include <qvariant.h> | 3 | #include <qvariant.h> |
4 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
5 | #include <qcheckbox.h> | 5 | #include <qcheckbox.h> |
6 | 6 | ||
7 | Newmdirdlg::Newmdirdlg( QWidget* parent, const char* name) | 7 | Newmdirdlg::Newmdirdlg( QWidget* parent, const char* name,bool no_sub) |
8 | : Newmdirdlgui(parent,name,true),ndir(""),possible_subs(false) | 8 | : Newmdirdlgui(parent,name,true),ndir(""),possible_subs(false) |
9 | { | 9 | { |
10 | if (no_sub) { | ||
11 | subdirsPossibleBox->setChecked(false); | ||
12 | subdirsPossibleBox->hide(); | ||
13 | } | ||
10 | } | 14 | } |
11 | 15 | ||
12 | Newmdirdlg::~Newmdirdlg() | 16 | Newmdirdlg::~Newmdirdlg() |
13 | { | 17 | { |
14 | } | 18 | } |
15 | 19 | ||
16 | void Newmdirdlg::accept() | 20 | void Newmdirdlg::accept() |
17 | { | 21 | { |
18 | ndir = dirnameEdit->text(); | 22 | ndir = dirnameEdit->text(); |
19 | possible_subs = subdirsPossibleBox->isChecked(); | 23 | possible_subs = subdirsPossibleBox->isChecked(); |
20 | if (ndir.isEmpty()) { | 24 | if (ndir.isEmpty()) { |
21 | return; | 25 | return; |
22 | } | 26 | } |
23 | Newmdirdlgui::accept(); | 27 | Newmdirdlgui::accept(); |
24 | } | 28 | } |
25 | 29 | ||
26 | const QString&Newmdirdlg::Newdir()const | 30 | const QString&Newmdirdlg::Newdir()const |
27 | { | 31 | { |
28 | return ndir; | 32 | return ndir; |
29 | } | 33 | } |
30 | 34 | ||
31 | const bool Newmdirdlg::subpossible()const | 35 | const bool Newmdirdlg::subpossible()const |
32 | { | 36 | { |
33 | return possible_subs; | 37 | return possible_subs; |