Diffstat (limited to 'noncore/settings/networksettings/ppp/edit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/edit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/settings/networksettings/ppp/edit.cpp b/noncore/settings/networksettings/ppp/edit.cpp index 10bc25c..45d6e4f 100644 --- a/noncore/settings/networksettings/ppp/edit.cpp +++ b/noncore/settings/networksettings/ppp/edit.cpp | |||
@@ -170,25 +170,24 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount | |||
170 | 170 | ||
171 | auth->setCurrentItem(_pppdata->authMethod()); | 171 | auth->setCurrentItem(_pppdata->authMethod()); |
172 | store_password->setChecked(_pppdata->storePassword()); | 172 | store_password->setChecked(_pppdata->storePassword()); |
173 | } else { | 173 | } else { |
174 | // select PAP/CHAP as default | 174 | // select PAP/CHAP as default |
175 | auth->setCurrentItem(AUTH_PAPCHAP); | 175 | auth->setCurrentItem(AUTH_PAPCHAP); |
176 | } | 176 | } |
177 | 177 | ||
178 | numbersChanged(); | 178 | numbersChanged(); |
179 | tl->activate(); | 179 | tl->activate(); |
180 | } | 180 | } |
181 | 181 | ||
182 | |||
183 | bool DialWidget::save() { | 182 | bool DialWidget::save() { |
184 | //first check to make sure that the account name is unique! | 183 | //first check to make sure that the account name is unique! |
185 | if(connectname_l->text().isEmpty() || | 184 | if(connectname_l->text().isEmpty() || |
186 | !_pppdata->isUniqueAccname(connectname_l->text())) { | 185 | !_pppdata->isUniqueAccname(connectname_l->text())) { |
187 | return false; | 186 | return false; |
188 | } else { | 187 | } else { |
189 | _pppdata->setAccname(connectname_l->text()); | 188 | _pppdata->setAccname(connectname_l->text()); |
190 | 189 | ||
191 | QString number = ""; | 190 | QString number = ""; |
192 | for(uint i = 0; i < numbers->count(); i++) { | 191 | for(uint i = 0; i < numbers->count(); i++) { |
193 | if(i != 0) | 192 | if(i != 0) |
194 | number += ":"; | 193 | number += ":"; |
@@ -251,25 +250,25 @@ void DialWidget::downNumber() { | |||
251 | if(idx != -1) { | 250 | if(idx != -1) { |
252 | QString item = numbers->text(idx); | 251 | QString item = numbers->text(idx); |
253 | numbers->removeItem(idx); | 252 | numbers->removeItem(idx); |
254 | numbers->insertItem(item, idx+1); | 253 | numbers->insertItem(item, idx+1); |
255 | numbers->setCurrentItem(idx+1); | 254 | numbers->setCurrentItem(idx+1); |
256 | numbersChanged(); | 255 | numbersChanged(); |
257 | } | 256 | } |
258 | } | 257 | } |
259 | 258 | ||
260 | 259 | ||
261 | void DialWidget::pppdargsbutton() { | 260 | void DialWidget::pppdargsbutton() { |
262 | PPPdArguments pa(_pppdata, this); | 261 | PPPdArguments pa(_pppdata, this); |
263 | pa.exec(); | 262 | pa.exec(); |
264 | } | 263 | } |
265 | 264 | ||
266 | 265 | ||
267 | 266 | ||
268 | ///////////////////////////////////////////////////////////////////////////// | 267 | ///////////////////////////////////////////////////////////////////////////// |
269 | // ExecWidget | 268 | // ExecWidget |
270 | ///////////////////////////////////////////////////////////////////////////// | 269 | ///////////////////////////////////////////////////////////////////////////// |
271 | ExecWidget::ExecWidget(PPPData *pd, QWidget *parent, bool isnewaccount, const char *name) : | 270 | ExecWidget::ExecWidget(PPPData *pd, QWidget *parent, bool isnewaccount, const char *name) : |
272 | QWidget(parent, name), _pppdata(pd) | 271 | QWidget(parent, name), _pppdata(pd) |
273 | { | 272 | { |
274 | QVBoxLayout *tl = new QVBoxLayout(this, 0 );//, KDialog::spacingHint()); | 273 | QVBoxLayout *tl = new QVBoxLayout(this, 0 );//, KDialog::spacingHint()); |
275 | 274 | ||