author | zautrix <zautrix> | 2005-02-28 18:16:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-28 18:16:03 (UTC) |
commit | 27466d3bc668e7a4c4bdedb6f407e14844908347 (patch) (unidiff) | |
tree | ecc5f637b7430d34161a267bd4047cdd0de056f3 /kmicromail/editaccounts.cpp | |
parent | 16575cca67c9047de72530080dfeb5793a66c935 (diff) | |
download | kdepimpi-27466d3bc668e7a4c4bdedb6f407e14844908347.zip kdepimpi-27466d3bc668e7a4c4bdedb6f407e14844908347.tar.gz kdepimpi-27466d3bc668e7a4c4bdedb6f407e14844908347.tar.bz2 |
ompi fixes
-rw-r--r-- | kmicromail/editaccounts.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index 8253c91..f1075c0 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp | |||
@@ -378,12 +378,18 @@ void IMAPconfig::fillValues() | |||
378 | } | 378 | } |
379 | CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); | 379 | CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); |
380 | } | 380 | } |
381 | 381 | ||
382 | void IMAPconfig::accept() | 382 | void IMAPconfig::accept() |
383 | { | 383 | { |
384 | if ( localFolder->text().contains("/") ||localFolder->text().contains("\\") ) { | ||
385 | QMessageBox::information( this, i18n( "Error" ), | ||
386 | i18n( "No paths allowed in\nlocal folder settings.\nPlease specify a folder\nname or leave empty\nto create local folder\nwith account name\nautomatically." ), | ||
387 | i18n( "Ok" ) ); | ||
388 | return; | ||
389 | } | ||
384 | data->setAccountName( accountLine->text() ); | 390 | data->setAccountName( accountLine->text() ); |
385 | data->setServer( serverLine->text() ); | 391 | data->setServer( serverLine->text() ); |
386 | data->setPort( portLine->text() ); | 392 | data->setPort( portLine->text() ); |
387 | data->setConnectionType( ComboBox1->currentItem() ); | 393 | data->setConnectionType( ComboBox1->currentItem() ); |
388 | data->setUser( userLine->text() ); | 394 | data->setUser( userLine->text() ); |
389 | data->setPassword( passLine->text() ); | 395 | data->setPassword( passLine->text() ); |
@@ -451,12 +457,18 @@ void POP3config::fillValues() | |||
451 | } | 457 | } |
452 | CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); | 458 | CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); |
453 | } | 459 | } |
454 | 460 | ||
455 | void POP3config::accept() | 461 | void POP3config::accept() |
456 | { | 462 | { |
463 | if ( localFolder->text().contains("/") ||localFolder->text().contains("\\") ) { | ||
464 | QMessageBox::information( this, i18n( "Error" ), | ||
465 | i18n( "No paths allowed in\nlocal folder settings.\nPlease specify a folder\nname or leave empty\nto create local folder\nwith account name\nautomatically." ), | ||
466 | i18n( "Ok" ) ); | ||
467 | return; | ||
468 | } | ||
457 | data->setAccountName( accountLine->text() ); | 469 | data->setAccountName( accountLine->text() ); |
458 | data->setServer( serverLine->text() ); | 470 | data->setServer( serverLine->text() ); |
459 | data->setPort( portLine->text() ); | 471 | data->setPort( portLine->text() ); |
460 | data->setConnectionType( ComboBox1->currentItem() ); | 472 | data->setConnectionType( ComboBox1->currentItem() ); |
461 | data->setUser( userLine->text() ); | 473 | data->setUser( userLine->text() ); |
462 | data->setPassword( passLine->text() ); | 474 | data->setPassword( passLine->text() ); |