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 @@ -380,8 +380,14 @@ void IMAPconfig::fillValues() } 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() ); @@ -453,8 +459,14 @@ void POP3config::fillValues() } 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() ); |