summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncmanager.cpp
authorzautrix <zautrix>2004-10-07 13:41:15 (UTC)
committer zautrix <zautrix>2004-10-07 13:41:15 (UTC)
commitbb8293c794d82a57bc93af85ccd89b601356d577 (patch) (unidiff)
tree1b5112b9fda89888095bbb9934349c800865043c /libkdepim/ksyncmanager.cpp
parentd14d61ebb2e41329465883a0dfce719d69fc3f3e (diff)
downloadkdepimpi-bb8293c794d82a57bc93af85ccd89b601356d577.zip
kdepimpi-bb8293c794d82a57bc93af85ccd89b601356d577.tar.gz
kdepimpi-bb8293c794d82a57bc93af85ccd89b601356d577.tar.bz2
sync fixes
Diffstat (limited to 'libkdepim/ksyncmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index 28af135..fad9a76 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -789,5 +789,6 @@ void KSyncManager::deleteCommandSocket(KCommandSocket*s, int state)
789 //enum { success, errorW, errorR, quiet }; 789 //enum { success, errorW, errorR, quiet };
790 if ( state == KCommandSocket::errorR ) { 790 if ( state == KCommandSocket::errorR ||state == KCommandSocket::errorTO ) {
791 mParent->topLevelWidget()->setCaption( i18n("ERROR: Receiving remote file failed.") ); 791 mParent->topLevelWidget()->setCaption( i18n("ERROR: Receiving remote file failed.") );
792 delete s; 792 delete s;
793 if ( state == KCommandSocket::errorR ) {
793 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, mActiveSyncPort.toUInt(), mActiveSyncIP, this ); 794 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, mActiveSyncPort.toUInt(), mActiveSyncIP, this );
@@ -795,2 +796,3 @@ void KSyncManager::deleteCommandSocket(KCommandSocket*s, int state)
795 commandSocket->sendStop(); 796 commandSocket->sendStop();
797 }
796 return; 798 return;
@@ -1139,3 +1141,9 @@ void KCommandSocket::deleteSocket()
1139 KMessageBox::information( 0, i18n("ERROR:\nConnection to remote host timed out!\nDid you forgot to enable\nsyncing on remote host? ")); 1141 KMessageBox::information( 0, i18n("ERROR:\nConnection to remote host timed out!\nDid you forgot to enable\nsyncing on remote host? "));
1140 mRetVal = errorR; 1142 mRetVal = errorTO;
1143 if ( mSocket ) {
1144 mSocket->close();
1145 if ( mSocket->state() == QSocket::Idle )
1146 deleteSocket();
1147 return;
1148 }
1141 } 1149 }