Skip to content
Snippets Groups Projects
Commit c66d5483 authored by Jérémy Quentin's avatar Jérémy Quentin
Browse files

[#1919] Error fixed

[#1886]
parent 5cee703b
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ void DlgAccounts::loadAccount(QListWidgetItem * item) ...@@ -182,7 +182,7 @@ void DlgAccounts::loadAccount(QListWidgetItem * item)
edit6_mailbox->setText( account->getAccountDetail(ACCOUNT_MAILBOX)); edit6_mailbox->setText( account->getAccountDetail(ACCOUNT_MAILBOX));
checkBox_conformRFC->setChecked( account->getAccountDetail(ACCOUNT_RESOLVE_ONCE) != "TRUE" ); checkBox_conformRFC->setChecked( account->getAccountDetail(ACCOUNT_RESOLVE_ONCE) != "TRUE" );
bool ok; 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); spinbox_regExpire->setValue(ok ? val : ACCOUNT_EXPIRE_DEFAULT);
updateStatusLabel(account); updateStatusLabel(account);
frame2_editAccounts->setEnabled(true); frame2_editAccounts->setEnabled(true);
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @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 class DlgAccounts : public QWidget, public Ui_DlgAccountsBase
{ {
...@@ -38,6 +40,7 @@ public: ...@@ -38,6 +40,7 @@ public:
DlgAccounts(KConfigDialog *parent = 0); DlgAccounts(KConfigDialog *parent = 0);
void saveAccount(QListWidgetItem * item); void saveAccount(QListWidgetItem * item);
/** /**
* Fills the settings form in the right side with the * Fills the settings form in the right side with the
* settings of @p item. * settings of @p item.
...@@ -49,7 +52,7 @@ public: ...@@ -49,7 +52,7 @@ public:
* is filled with the right default settings if blank (as 600 for * is filled with the right default settings if blank (as 600 for
* registration expire). * registration expire).
* *
* @param item * @param item the item with which to fill the settings form
*/ */
void loadAccount(QListWidgetItem * item); void loadAccount(QListWidgetItem * item);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment