author | tille <tille> | 2003-06-12 16:27:32 (UTC) |
---|---|---|
committer | tille <tille> | 2003-06-12 16:27:32 (UTC) |
commit | 212f79ac5305c32d0752cc358c2636df0bc7e523 (patch) (unidiff) | |
tree | 324658eb2308a54507edb5a58330aa7de258f3bb | |
parent | f0f9cf3fa486a577770e3c0e89280c66ea331e73 (diff) | |
download | opie-212f79ac5305c32d0752cc358c2636df0bc7e523.zip opie-212f79ac5305c32d0752cc358c2636df0bc7e523.tar.gz opie-212f79ac5305c32d0752cc358c2636df0bc7e523.tar.bz2 |
fix delete account
-rw-r--r-- | noncore/settings/networksettings/ppp/accounts.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/ppp/accounts.cpp b/noncore/settings/networksettings/ppp/accounts.cpp index 04905e8..fa1c43b 100644 --- a/noncore/settings/networksettings/ppp/accounts.cpp +++ b/noncore/settings/networksettings/ppp/accounts.cpp | |||
@@ -181,9 +181,11 @@ void AccountWidget::deleteaccount() { | |||
181 | 181 | ||
182 | QString s = tr("Are you sure you want to delete\nthe account \"%1\"?") | 182 | QString s = tr("Are you sure you want to delete\nthe account \"%1\"?") |
183 | .arg(accountlist_l->text(accountlist_l->currentItem())); | 183 | .arg(accountlist_l->text(accountlist_l->currentItem())); |
184 | 184 | ||
185 | if(QMessageBox::warning(this, s, tr("Confirm")) != QMessageBox::Yes) | 185 | if(QMessageBox::warning(this,tr("Confirm"),s, |
186 | QMessageBox::Yes,QMessageBox::No | ||
187 | ) != QMessageBox::Yes) | ||
186 | return; | 188 | return; |
187 | 189 | ||
188 | if(_pppdata->deleteAccount(accountlist_l->text(accountlist_l->currentItem()))) | 190 | if(_pppdata->deleteAccount(accountlist_l->text(accountlist_l->currentItem()))) |
189 | accountlist_l->removeItem(accountlist_l->currentItem()); | 191 | accountlist_l->removeItem(accountlist_l->currentItem()); |