diff options
| author | 2009-01-15 01:42:45 +0000 | |
|---|---|---|
| committer | 2009-01-15 01:42:45 +0000 | |
| commit | 2d1df076171ba21b9d7c2633408f27190a59bb74 (patch) | |
| tree | c57163226a2e0fd7ba29b148bff8045ce83e3317 /src/modules/dcc/broker.cpp | |
| parent | fix for #321 dcc resume (diff) | |
| download | KVIrc-2d1df076171ba21b9d7c2633408f27190a59bb74.tar.gz KVIrc-2d1df076171ba21b9d7c2633408f27190a59bb74.tar.bz2 KVIrc-2d1df076171ba21b9d7c2633408f27190a59bb74.zip | |
part 2 of fix #321
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2996 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/dcc/broker.cpp')
| -rw-r--r-- | src/modules/dcc/broker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/dcc/broker.cpp b/src/modules/dcc/broker.cpp index 91930d61a..244024144 100644 --- a/src/modules/dcc/broker.cpp +++ b/src/modules/dcc/broker.cpp @@ -658,7 +658,7 @@ void KviDccBroker::renameOverwriteResume(KviDccBox *box,KviDccDescriptor * dcc) QString tmp; bool bDisableResume = false; - if((iRemoteSize > -1) || // remote size is unknown + if((bOk) || // remote size is unknown (iRemoteSize > ((unsigned long)(fi.size())))) // or it is larger than the actual size on disk { tmp = __tr2qs_ctx( \ @@ -696,8 +696,8 @@ void KviDccBroker::renameOverwriteResume(KviDccBox *box,KviDccDescriptor * dcc) } else { // auto resume ? if(KVI_OPTION_BOOL(KviOption_boolAutoResumeDccSendWhenAutoAccepted) && - (iRemoteSize > -1) && // only if the remote size is really known - (iRemoteSize > ((int)(fi.size()))) && // only if the remote size is larger than the local size + (bOk) && // only if the remote size is really known + (iRemoteSize > ((unsigned long)(fi.size()))) && // only if the remote size is larger than the local size (!KviDccFileTransfer::nonFailedTransferWithLocalFileName(dcc->szLocalFileName.toUtf8().data()))) // only if there is no transfer with this local file name yet { // yep, auto resume... |
