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/folderwatcher.cpp
parenta9cf7edffcbc6ee2bf8062c27903d1ea83619b27 (diff)
Use std::chrono with QTimer::singleShot
Diffstat (limited to 'src/gui/folderwatcher.cpp')
-rw-r--r--src/gui/folderwatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/folderwatcher.cpp b/src/gui/folderwatcher.cpp
index 9e26d4019..3d5696642 100644
--- a/src/gui/folderwatcher.cpp
+++ b/src/gui/folderwatcher.cpp
@@ -94,7 +94,7 @@ void FolderWatcher::startNotificatonTest(const QString &path)
void FolderWatcher::startNotificationTestWhenReady()
{
if (!_d->isReady()) {
- QTimer::singleShot(1000, this, &FolderWatcher::startNotificationTestWhenReady);
+ QTimer::singleShot(1s, this, &FolderWatcher::startNotificationTestWhenReady);
return;
}
@@ -107,7 +107,7 @@ void FolderWatcher::startNotificationTestWhenReady()
f.open(QIODevice::WriteOnly | QIODevice::Append);
}
- QTimer::singleShot(5000, this, [this]() {
+ QTimer::singleShot(5s, this, [this]() {
if (!_testNotificationPath.isEmpty())
emit becameUnreliable(tr("The watcher did not receive a test notification."));
_testNotificationPath.clear();