summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-24 00:28:59 (UTC)
committer zautrix <zautrix>2005-02-24 00:28:59 (UTC)
commit513496c67403deb04339cfc87143ed5554720e32 (patch) (side-by-side diff)
tree87a0195e9875c539061ff70d18b05e4d50e96150
parentfd1e112db9e9d3dc656a540c05a87cbb4679939c (diff)
downloadkdepimpi-513496c67403deb04339cfc87143ed5554720e32.zip
kdepimpi-513496c67403deb04339cfc87143ed5554720e32.tar.gz
kdepimpi-513496c67403deb04339cfc87143ed5554720e32.tar.bz2
fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index 5214fe7..d8ca3ba 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -1174,35 +1174,38 @@ void KServerSocket::readClient()
if ( tokens[1] == mPassWord ) {
//emit sendFile( mSocket );
bool ok = false;
QDateTime dt = KGlobal::locale()->readDateTime( tokens[2], KLocale::ISODate, &ok);
if ( ok ) {
KSyncManager::mRequestedSyncEvent = dt;
}
else
KSyncManager::mRequestedSyncEvent = QDateTime();
send_file();
}
else {
+ error_connect();
KMessageBox::error( 0, i18n("Got send file request\nwith invalid password"));
//qDebug("password %s, invalid password %s ",mPassWord.latin1(), tokens[1].latin1() );
}
}
if ( tokens[0] == "PUT" ) {
if ( tokens[1] == mPassWord ) {
//emit getFile( mSocket );
blockRC = true;
get_file();
}
else {
+ error_connect();
+ end_connect();
KMessageBox::error( 0, i18n("Got receive file request\nwith invalid password"));
//qDebug("password %s, invalid password %s ",mPassWord.latin1(), tokens[1].latin1() );
}
}
if ( tokens[0] == "STOP" ) {
//emit endConnect();
end_connect();
}
}
}
void KServerSocket::error_connect()
{