author | zautrix <zautrix> | 2004-10-04 10:38:45 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-04 10:38:45 (UTC) |
commit | 01b5806c61deb8368f8f454fdec1c4767c73a840 (patch) (side-by-side diff) | |
tree | f2546296a50444d02d2a74f6bf55fd57b0504ebc /korganizer/mainwindow.cpp | |
parent | 743f44c45534a6e1df17ddc7b5f3c62b73921455 (diff) | |
download | kdepimpi-01b5806c61deb8368f8f454fdec1c4767c73a840.zip kdepimpi-01b5806c61deb8368f8f454fdec1c4767c73a840.tar.gz kdepimpi-01b5806c61deb8368f8f454fdec1c4767c73a840.tar.bz2 |
sync fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 8e2f956..10cb2a2 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -2118,3 +2118,3 @@ void MainWindow::performQuickQuick() setCaption( i18n("Sending request for remote file ...") ); - mTimerCommandSocket->start( 15000 ); + mTimerCommandSocket->start( 10000 ); @@ -2129,2 +2129,3 @@ void MainWindow::deleteCommandSocket() } + //KMessageBox::information( 0, i18n("MainWindow::deleteCommandSocket ")); qDebug("MainWindow::deletemCommandSocket() "); @@ -2137,3 +2138,3 @@ void MainWindow::deleteCommandSocketFinish() return; - //KMessageBox::information( 0, i18n("MainWindow::deleteCommandSocketFinish() ")); + // KMessageBox::information( 0, i18n("MainWindow::deleteCommandSocketFinish() ")); qDebug("MainWindow::deletemCommandSocketFinish() "); @@ -2173,3 +2174,3 @@ void MainWindow::readFileFromSocket() ti.start(); - while ( ti.elapsed () < 5000 && !mCommandSocket->canReadLine () ) { + while ( ti.elapsed () < 3000 && !mCommandSocket->canReadLine () ) { qApp->processEvents(); @@ -2227,3 +2228,2 @@ void MainWindow::readFileFromSocket() } - setCaption( i18n("Sending back synced file...") ); QTextStream ts2( &file2 ); @@ -2234,2 +2234,3 @@ void MainWindow::readFileFromSocket() if ( KOPrefs::instance()->mWriteBackFile ) { + setCaption( i18n("Sending back synced file...") ); os2 << "PUT " << mPassWordPiSync << "\r\n";; @@ -2243,3 +2244,3 @@ void MainWindow::readFileFromSocket() if ( mCommandSocketFinish->state() == QSocket::Idle ) - deleteCommandSocketFinish(); + QTimer::singleShot( 10, this , SLOT ( deleteCommandSocketFinish())); file.close(); @@ -2248,2 +2249,3 @@ void MainWindow::readFileFromSocket() + // KMessageBox::information( 0, i18n(" Pi-Sync succesful! ")); |