author | zautrix <zautrix> | 2005-02-28 18:16:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-28 18:16:03 (UTC) |
commit | 27466d3bc668e7a4c4bdedb6f407e14844908347 (patch) (side-by-side diff) | |
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 @@ -376,16 +376,22 @@ void IMAPconfig::fillValues() CheckBoxDown->setChecked( false ); SpinBoxDown->setValue ( 5 ); } CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); } void IMAPconfig::accept() { + if ( localFolder->text().contains("/") ||localFolder->text().contains("\\") ) { + QMessageBox::information( this, i18n( "Error" ), + i18n( "No paths allowed in\nlocal folder settings.\nPlease specify a folder\nname or leave empty\nto create local folder\nwith account name\nautomatically." ), + i18n( "Ok" ) ); + return; + } data->setAccountName( accountLine->text() ); data->setServer( serverLine->text() ); data->setPort( portLine->text() ); data->setConnectionType( ComboBox1->currentItem() ); data->setUser( userLine->text() ); data->setPassword( passLine->text() ); data->setPrefix(prefixLine->text()); data->setLocalFolder( localFolder->text() ); @@ -449,16 +455,22 @@ void POP3config::fillValues() CheckBoxDown->setChecked( false ); SpinBoxDown->setValue ( 5 ); } CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); } void POP3config::accept() { + if ( localFolder->text().contains("/") ||localFolder->text().contains("\\") ) { + QMessageBox::information( this, i18n( "Error" ), + i18n( "No paths allowed in\nlocal folder settings.\nPlease specify a folder\nname or leave empty\nto create local folder\nwith account name\nautomatically." ), + i18n( "Ok" ) ); + return; + } data->setAccountName( accountLine->text() ); data->setServer( serverLine->text() ); data->setPort( portLine->text() ); data->setConnectionType( ComboBox1->currentItem() ); data->setUser( userLine->text() ); data->setPassword( passLine->text() ); data->setLocalFolder( localFolder->text() ); data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; |