summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt3
-rw-r--r--libkdepim/ksyncmanager.cpp8
2 files changed, 10 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 8264410..fd29b51 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -2,6 +2,9 @@ Info about the changes in new versions of KDE-Pim/Pi
********** VERSION 2.1.18 ************
+Pi-Sync mode:
+The "Write back file" status dialog was updated too often such that writing back the file on the Z was very slow. Fixed.
+
KO/Pi:
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index f2ee0ab..2a75bfb 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -1566,11 +1566,17 @@ void KCommandSocket::writeFileToSocket()
QTextStream os2( mSocket );
os2.setEncoding( QTextStream::Latin1 );
os2 << "PUT " << mPassWord << "\r\n\r\n";;
+ int byteCount = 0;
+ int byteMax = file2.size()/53;
while ( ! ts2.atEnd() ) {
qApp->processEvents();
- mConnectProgress.setProgress( count );
+ if ( byteCount > byteMax ) {
+ byteCount = 0;
+ mConnectProgress.setProgress( count );
+ }
QString temp = ts2.readLine();
count += temp.length();
+ byteCount += temp.length();
os2 << temp << "\r\n";
}
file2.close();