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:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-08-25 18:00:53 +0300
committerHannah von Reth <vonreth@kde.org>2021-11-25 16:51:05 +0300
commitfee6cd11971e62dc276c50297e2526b784192682 (patch)
tree6355dd98fecd6d0f3d4856fb7062349e6e4e8220 /src/gui/folder.cpp
parenta9cf7edffcbc6ee2bf8062c27903d1ea83619b27 (diff)
Use std::chrono with QTimer::singleShot
Diffstat (limited to 'src/gui/folder.cpp')
-rw-r--r--src/gui/folder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index ee220e0e9..239a0873d 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -1028,7 +1028,7 @@ void Folder::slotSyncFinished(bool success)
// file system change notifications are ignored for that folder. And it takes
// some time under certain conditions to make the file system notifications
// all come in.
- QTimer::singleShot(200, this, &Folder::slotEmitFinishedDelayed);
+ QTimer::singleShot(200ms, this, &Folder::slotEmitFinishedDelayed);
_lastSyncDuration = std::chrono::milliseconds(_timeSinceLastSyncStart.elapsed());
_timeSinceLastSyncDone.start();