mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Propagator: Fix compilation
It is still protected on Qt4
This commit is contained in:
parent
104cf680a6
commit
8c9a65635f
1 changed files with 8 additions and 0 deletions
|
@ -354,7 +354,11 @@ void PropagateUploadFile::start()
|
|||
if( state == HBF_SOURCE_FILE_CHANGE ) {
|
||||
if( attempts++ < 5 ) { /* FIXME: How often do we want to try? */
|
||||
qDebug("SOURCE file has changed during upload, retry #%d in %d seconds!", attempts, 2*attempts);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
QThread::sleep(2*attempts);
|
||||
#else
|
||||
sleep(2*attempts);
|
||||
#endif
|
||||
if( _previousFileSize == 0 ) {
|
||||
_previousFileSize = _item._size;
|
||||
} else {
|
||||
|
@ -402,7 +406,11 @@ void PropagateUploadFile::start()
|
|||
|
||||
if( attempts++ < 5 ) { /* FIXME: How often do we want to try? */
|
||||
qDebug("SOURCE file has changed after upload, retry #%d in %d seconds!", attempts, 2*attempts);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
QThread::sleep(2*attempts);
|
||||
#else
|
||||
sleep(2*attempts);
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue