summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorzautrix <zautrix>2005-07-29 10:15:34 (UTC)
committer zautrix <zautrix>2005-07-29 10:15:34 (UTC)
commit43a46672f4212c9617c753e0aa591f781d2e5240 (patch) (side-by-side diff)
treec91a20a73aa042735e3e7141e443ae7d2bffc148 /libkdepim
parent8feb7e617f1aa5cd5bb04d9a69d05409c3c4c60d (diff)
downloadkdepimpi-43a46672f4212c9617c753e0aa591f781d2e5240.zip
kdepimpi-43a46672f4212c9617c753e0aa591f781d2e5240.tar.gz
kdepimpi-43a46672f4212c9617c753e0aa591f781d2e5240.tar.bz2
fixx
Diffstat (limited to 'libkdepim') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index f2ee0ab..2a75bfb 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -1563,17 +1563,23 @@ void KCommandSocket::writeFileToSocket()
mConnectProgress.blockSignals( true );
QTextStream ts2( &file2 );
ts2.setEncoding( QTextStream::Latin1 );
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();
+ if ( byteCount > byteMax ) {
+ byteCount = 0;
mConnectProgress.setProgress( count );
+ }
QString temp = ts2.readLine();
count += temp.length();
+ byteCount += temp.length();
os2 << temp << "\r\n";
}
file2.close();
mConnectProgress.hide();
mConnectCount = -1;
os2 << "\r\n";