Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mirall/csyncthread.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp
index 406b68c20..de6b76983 100644
--- a/src/mirall/csyncthread.cpp
+++ b/src/mirall/csyncthread.cpp
@@ -18,6 +18,12 @@
#include "mirall/theme.h"
#include "mirall/logger.h"
+#ifdef Q_OS_WIN
+#include <windows.h>
+#else
+#include <unistd.h>
+#endif
+
#include <QDebug>
#include <QDir>
#include <QMutexLocker>
@@ -360,7 +366,11 @@ cleanup:
qDebug() << "CSync run took " << t.elapsed() << " Milliseconds";
qDebug() << "CSync Waiting a bit to let OS finish up IO";
- sleep(2);
+#ifdef Q_OS_WIN
+ Sleep(2000);
+#else
+ ::sleep(2);
+#endif
qDebug() << "CSync End Waiting";
emit(finished());