Diffstat (limited to 'noncore/settings/usermanager/userdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/usermanager/userdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp index 0d2122b..c06f639 100644 --- a/noncore/settings/usermanager/userdialog.cpp +++ b/noncore/settings/usermanager/userdialog.cpp | |||
@@ -35,27 +35,29 @@ using namespace Opie; | |||
35 | UserDialog::UserDialog(int viewmode, QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { | 35 | UserDialog::UserDialog(int viewmode, QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { |
36 | vm=viewmode; | 36 | vm=viewmode; |
37 | QVBoxLayout *layout = new QVBoxLayout(this); | 37 | QVBoxLayout *layout = new QVBoxLayout(this); |
38 | myTabWidget=new QTabWidget(this,"User Tab Widget"); | 38 | myTabWidget=new QTabWidget(this,"User Tab Widget"); |
39 | layout->addWidget(myTabWidget); | 39 | layout->addWidget(myTabWidget); |
40 | setupTab1(); | 40 | setupTab1(); |
41 | setupTab2(); | 41 | setupTab2(); |
42 | 42 | ||
43 | accounts->groupStringList.sort(); | 43 | accounts->groupStringList.sort(); |
44 | // And also fill the listview & the combobox with all available groups. | 44 | // And also fill the listview & the combobox with all available groups. |
45 | for( QStringList::Iterator it = accounts->groupStringList.begin(); it!=accounts->groupStringList.end(); ++it) { | 45 | for( QStringList::Iterator it = accounts->groupStringList.begin(); it!=accounts->groupStringList.end(); ++it) { |
46 | accounts->splitGroupEntry(*it); | 46 | accounts->splitGroupEntry(*it); |
47 | if(accounts->gr_name.find(QRegExp("^#"),0)) {// Skip commented lines. | ||
47 | new QCheckListItem(groupsListView,accounts->gr_name,QCheckListItem::CheckBox); | 48 | new QCheckListItem(groupsListView,accounts->gr_name,QCheckListItem::CheckBox); |
48 | groupComboBox->insertItem(accounts->gr_name); | 49 | groupComboBox->insertItem(accounts->gr_name); |
49 | } | 50 | } |
51 | } | ||
50 | showMaximized(); | 52 | showMaximized(); |
51 | } | 53 | } |
52 | 54 | ||
53 | /** | 55 | /** |
54 | * Empty destructor. | 56 | * Empty destructor. |
55 | * | 57 | * |
56 | */ | 58 | */ |
57 | UserDialog::~UserDialog() { | 59 | UserDialog::~UserDialog() { |
58 | } | 60 | } |
59 | 61 | ||
60 | /** | 62 | /** |
61 | * Creates the first tab, all userinfo is here. | 63 | * Creates the first tab, all userinfo is here. |