author | zautrix <zautrix> | 2004-10-07 23:26:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-07 23:26:31 (UTC) |
commit | 91e43b55a0ddf6a6f39f4ed3ae828ddad6ec89a5 (patch) (side-by-side diff) | |
tree | 8fd8d34625e4e4f28dea34e4cb19612f49eca20d /libkdepim | |
parent | 9f1b282aa2a72f3118a89dfebbc3c8132197213a (diff) | |
download | kdepimpi-91e43b55a0ddf6a6f39f4ed3ae828ddad6ec89a5.zip kdepimpi-91e43b55a0ddf6a6f39f4ed3ae828ddad6ec89a5.tar.gz kdepimpi-91e43b55a0ddf6a6f39f4ed3ae828ddad6ec89a5.tar.bz2 |
sync fixes
-rw-r--r-- | libkdepim/ksyncmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index 01309d5..b3e266a 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp @@ -1136,39 +1136,41 @@ void KCommandSocket::readFileFromSocket() mRetVal = errorR; qDebug("Error open temp calender file for writing: %s",fileName.latin1() ); deleteSocket(); return ; } // mView->setLoadedFileVersion(QDateTime::currentDateTime().addSecs( -1)); QTextStream ts ( &file ); ts.setEncoding( QTextStream::Latin1 ); ts << mFileString; file.close(); mFileString = ""; mRetVal = successR; mSocket->close(); // if state is not idle, deleteSocket(); is called via // connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); if ( mSocket->state() == QSocket::Idle ) deleteSocket(); } void KCommandSocket::deleteSocket() { if ( mTimerSocket->isActive () ) { mTimerSocket->stop(); - KMessageBox::information( 0, i18n("ERROR:\nConnection to remote host timed out!\nDid you forgot to enable\nsyncing on remote host? ")); mRetVal = errorTO; if ( mSocket ) { mSocket->close(); if ( mSocket->state() == QSocket::Idle ) deleteSocket(); return; } } //qDebug("KCommandSocket::deleteSocket() %d", mRetVal ); if ( mSocket) delete mSocket; mSocket = 0; + if ( mRetVal == errorTO) + KMessageBox::information( 0, i18n("ERROR:\nConnection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host? ")); + emit commandFinished( this, mRetVal ); } |