Diffstat (limited to 'noncore/settings/networksettings/ppp/accounts.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/accounts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/ppp/accounts.cpp b/noncore/settings/networksettings/ppp/accounts.cpp index b8a1925a..aedc0b9 100644 --- a/noncore/settings/networksettings/ppp/accounts.cpp +++ b/noncore/settings/networksettings/ppp/accounts.cpp | |||
@@ -97,49 +97,49 @@ void AccountWidget::edit() | |||
97 | 97 | ||
98 | int result = doTab(); | 98 | int result = doTab(); |
99 | 99 | ||
100 | if(result == QDialog::Accepted) | 100 | if(result == QDialog::Accepted) |
101 | { | 101 | { |
102 | listListbox->changeItem(_pppdata->accname(),listListbox->currentItem()); | 102 | listListbox->changeItem(_pppdata->accname(),listListbox->currentItem()); |
103 | // emit resetaccounts(); | 103 | // emit resetaccounts(); |
104 | _pppdata->save(); | 104 | _pppdata->save(); |
105 | } | 105 | } |
106 | } | 106 | } |
107 | 107 | ||
108 | 108 | ||
109 | void AccountWidget::create() | 109 | void AccountWidget::create() |
110 | { | 110 | { |
111 | 111 | ||
112 | // if(listListbox->count() == MAX_ACCOUNTS) { | 112 | // if(listListbox->count() == MAX_ACCOUNTS) { |
113 | // QMessageBox::information(this, "sorry", | 113 | // QMessageBox::information(this, "sorry", |
114 | // tr("Maximum number of accounts reached.")); | 114 | // tr("Maximum number of accounts reached.")); |
115 | // return; | 115 | // return; |
116 | // } | 116 | // } |
117 | 117 | ||
118 | int result; | 118 | int result; |
119 | if (_pppdata->newaccount() == -1) | 119 | if (_pppdata->newaccount() == -1) |
120 | { | 120 | { |
121 | qDebug("_pppdata->newaccount() == -1"); | 121 | odebug << "_pppdata->newaccount() == -1" << oendl; |
122 | return; | 122 | return; |
123 | } | 123 | } |
124 | result = doTab(); | 124 | result = doTab(); |
125 | 125 | ||
126 | if(result == QDialog::Accepted) | 126 | if(result == QDialog::Accepted) |
127 | { | 127 | { |
128 | listListbox->insertItem(_pppdata->accname()); | 128 | listListbox->insertItem(_pppdata->accname()); |
129 | listListbox->setSelected(listListbox->findItem(_pppdata->accname()),true); | 129 | listListbox->setSelected(listListbox->findItem(_pppdata->accname()),true); |
130 | 130 | ||
131 | _pppdata->save(); | 131 | _pppdata->save(); |
132 | } | 132 | } |
133 | else | 133 | else |
134 | _pppdata->deleteAccount(); | 134 | _pppdata->deleteAccount(); |
135 | } | 135 | } |
136 | 136 | ||
137 | 137 | ||
138 | void AccountWidget::copy() | 138 | void AccountWidget::copy() |
139 | { | 139 | { |
140 | // if(listListbox->count() == MAX_ACCOUNTS) { | 140 | // if(listListbox->count() == MAX_ACCOUNTS) { |
141 | // QMessageBox::information(this, "sorry", tr("Maximum number of accounts reached.")); | 141 | // QMessageBox::information(this, "sorry", tr("Maximum number of accounts reached.")); |
142 | // return; | 142 | // return; |
143 | // } | 143 | // } |
144 | 144 | ||
145 | if(listListbox->currentItem()<0) | 145 | if(listListbox->currentItem()<0) |