-rw-r--r-- | kmicromail/editaccounts.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index e7d2750..d43d23b 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp @@ -361,6 +361,16 @@ void IMAPconfig::fillValues() userLine->setText( data->getUser() ); passLine->setText( data->getPassword() ); prefixLine->setText(data->getPrefix()); + localFolder->setText( data->getLocalFolder() ); + int max = data->getMaxMailSize() ; + if ( max ) { + CheckBoxDown->setChecked( true ); + SpinBoxDown->setValue ( max ); + } else { + CheckBoxDown->setChecked( false ); + SpinBoxDown->setValue ( 5 ); + } + CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); } void IMAPconfig::accept() @@ -372,6 +382,9 @@ void IMAPconfig::accept() data->setUser( userLine->text() ); data->setPassword( passLine->text() ); data->setPrefix(prefixLine->text()); + data->setLocalFolder( localFolder->text() ); + data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; + data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() ); QDialog::accept(); } @@ -430,6 +443,7 @@ void POP3config::fillValues() CheckBoxDown->setChecked( false ); SpinBoxDown->setValue ( 5 ); } + CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); } void POP3config::accept() @@ -442,6 +456,7 @@ void POP3config::accept() data->setPassword( passLine->text() ); data->setLocalFolder( localFolder->text() ); data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; + data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() ); QDialog::accept(); } |