-rw-r--r-- | kmicromail/editaccounts.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index e7d2750..d43d23b 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp | |||
@@ -360,8 +360,18 @@ void IMAPconfig::fillValues() | |||
360 | ComboBox1->setCurrentItem( data->ConnectionType() ); | 360 | ComboBox1->setCurrentItem( data->ConnectionType() ); |
361 | userLine->setText( data->getUser() ); | 361 | userLine->setText( data->getUser() ); |
362 | passLine->setText( data->getPassword() ); | 362 | passLine->setText( data->getPassword() ); |
363 | prefixLine->setText(data->getPrefix()); | 363 | prefixLine->setText(data->getPrefix()); |
364 | localFolder->setText( data->getLocalFolder() ); | ||
365 | int max = data->getMaxMailSize() ; | ||
366 | if ( max ) { | ||
367 | CheckBoxDown->setChecked( true ); | ||
368 | SpinBoxDown->setValue ( max ); | ||
369 | } else { | ||
370 | CheckBoxDown->setChecked( false ); | ||
371 | SpinBoxDown->setValue ( 5 ); | ||
372 | } | ||
373 | CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); | ||
364 | } | 374 | } |
365 | 375 | ||
366 | void IMAPconfig::accept() | 376 | void IMAPconfig::accept() |
367 | { | 377 | { |
@@ -370,9 +380,12 @@ void IMAPconfig::accept() | |||
370 | data->setPort( portLine->text() ); | 380 | data->setPort( portLine->text() ); |
371 | data->setConnectionType( ComboBox1->currentItem() ); | 381 | data->setConnectionType( ComboBox1->currentItem() ); |
372 | data->setUser( userLine->text() ); | 382 | data->setUser( userLine->text() ); |
373 | data->setPassword( passLine->text() ); | 383 | data->setPassword( passLine->text() ); |
374 | data->setPrefix(prefixLine->text()); | 384 | data->setPrefix(prefixLine->text()); |
385 | data->setLocalFolder( localFolder->text() ); | ||
386 | data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; | ||
387 | data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() ); | ||
375 | 388 | ||
376 | QDialog::accept(); | 389 | QDialog::accept(); |
377 | } | 390 | } |
378 | 391 | ||
@@ -429,8 +442,9 @@ void POP3config::fillValues() | |||
429 | } else { | 442 | } else { |
430 | CheckBoxDown->setChecked( false ); | 443 | CheckBoxDown->setChecked( false ); |
431 | SpinBoxDown->setValue ( 5 ); | 444 | SpinBoxDown->setValue ( 5 ); |
432 | } | 445 | } |
446 | CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); | ||
433 | } | 447 | } |
434 | 448 | ||
435 | void POP3config::accept() | 449 | void POP3config::accept() |
436 | { | 450 | { |
@@ -441,8 +455,9 @@ void POP3config::accept() | |||
441 | data->setUser( userLine->text() ); | 455 | data->setUser( userLine->text() ); |
442 | data->setPassword( passLine->text() ); | 456 | data->setPassword( passLine->text() ); |
443 | data->setLocalFolder( localFolder->text() ); | 457 | data->setLocalFolder( localFolder->text() ); |
444 | data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; | 458 | data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; |
459 | data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() ); | ||
445 | 460 | ||
446 | QDialog::accept(); | 461 | QDialog::accept(); |
447 | } | 462 | } |
448 | 463 | ||