[#1919] Error fixed

[#1886]
This commit is contained in:
Jérémy Quentin
2009-07-23 17:58:10 -04:00
parent 5cee703b0e
commit c66d54834c
2 changed files with 5 additions and 2 deletions

View File

@ -182,7 +182,7 @@ void DlgAccounts::loadAccount(QListWidgetItem * item)
edit6_mailbox->setText( account->getAccountDetail(ACCOUNT_MAILBOX));
checkBox_conformRFC->setChecked( account->getAccountDetail(ACCOUNT_RESOLVE_ONCE) != "TRUE" );
bool ok;
int val = account->getAccountDetail(ACCOUNT_EXPIRE).toInt(ok);
int val = account->getAccountDetail(ACCOUNT_EXPIRE).toInt(&ok);
spinbox_regExpire->setValue(ok ? val : ACCOUNT_EXPIRE_DEFAULT);
updateStatusLabel(account);
frame2_editAccounts->setEnabled(true);

View File

@ -30,6 +30,8 @@
/**
@author Jérémy Quentin <jeremy.quentin@gmail.com>
\note see ticket #1309 for advices about how to improve this class.
*/
class DlgAccounts : public QWidget, public Ui_DlgAccountsBase
{
@ -38,6 +40,7 @@ public:
DlgAccounts(KConfigDialog *parent = 0);
void saveAccount(QListWidgetItem * item);
/**
* Fills the settings form in the right side with the
* settings of @p item.
@ -49,7 +52,7 @@ public:
* is filled with the right default settings if blank (as 600 for
* registration expire).
*
* @param item
* @param item the item with which to fill the settings form
*/
void loadAccount(QListWidgetItem * item);