-rw-r--r-- | libkdepim/ksyncmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index d2cb71b..e1b15d2 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp | |||
@@ -1752,27 +1752,27 @@ void KCommandSocket::deleteSocket() | |||
1752 | mConnectProgress.hide(); | 1752 | mConnectProgress.hide(); |
1753 | 1753 | ||
1754 | if ( mConnectCount >= 0 ) { | 1754 | if ( mConnectCount >= 0 ) { |
1755 | mTimerSocket->stop(); | 1755 | mTimerSocket->stop(); |
1756 | mRetVal = errorTO; | 1756 | mRetVal = errorTO; |
1757 | qDebug("KCS::Connection to remote host timed out"); | 1757 | qDebug("KCS::Connection to remote host timed out"); |
1758 | if ( mSocket ) { | 1758 | if ( mSocket ) { |
1759 | mSocket->close(); | 1759 | mSocket->close(); |
1760 | //if ( mSocket->state() == QSocket::Idle ) | 1760 | //if ( mSocket->state() == QSocket::Idle ) |
1761 | // deleteSocket(); | 1761 | // deleteSocket(); |
1762 | delete mSocket; | 1762 | delete mSocket; |
1763 | mSocket = 0; | 1763 | mSocket = 0; |
1764 | } | 1764 | } |
1765 | if ( mConnectCount == 0 ) | 1765 | if ( mConnectCount == 0 ) |
1766 | KMessageBox::error( 0, i18n("Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?")); | 1766 | KMessageBox::error( 0, i18n("Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?")); |
1767 | else if ( tlw ) | 1767 | else if ( tlw ) |
1768 | tlw->setCaption( i18n("Connection to remote host cancelled!") ); | 1768 | tlw->setCaption( i18n("Connection to remote host cancelled!") ); |
1769 | emit commandFinished( this, mRetVal ); | 1769 | emit commandFinished( this, mRetVal ); |
1770 | return; | 1770 | return; |
1771 | } | 1771 | } |
1772 | //qDebug("KCommandSocket::deleteSocket() %d", mRetVal ); | 1772 | //qDebug("KCommandSocket::deleteSocket() %d", mRetVal ); |
1773 | if ( mSocket) | 1773 | if ( mSocket) |
1774 | delete mSocket; | 1774 | delete mSocket; |
1775 | mSocket = 0; | 1775 | mSocket = 0; |
1776 | qDebug("commandFinished "); | 1776 | //qDebug("commandFinished "); |
1777 | emit commandFinished( this, mRetVal ); | 1777 | emit commandFinished( this, mRetVal ); |
1778 | } | 1778 | } |