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:
authorOlivier Goffart <ogoffart@woboq.com>2017-05-29 11:48:21 +0300
committerOlivier Goffart <ogoffart@woboq.com>2017-05-29 11:51:05 +0300
commitf88431adbf57ddd7af3952bcea3f993467fb3032 (patch)
tree4bb2a624c9735bd0aad4b80175a8bb7e529e3f3d /src/gui/activitywidget.cpp
parent03aa7e30449e6777fc23a96ff315020ed33da05b (diff)
Don't call QElapsedTimer::restart on uninitialized timer
That's an undefined behavior. Since we don't use the return value anyway, we should just use start()
Diffstat (limited to 'src/gui/activitywidget.cpp')
-rw-r--r--src/gui/activitywidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index 6a55001c0..2d40ce8ee 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -348,7 +348,7 @@ void ActivityWidget::slotBuildNotificationDisplay(const ActivityList &list)
if (newGuiLogCount > 0) {
// restart the gui log timer now that we show a notification
- _guiLogTimer.restart();
+ _guiLogTimer.start();
// Assemble a tray notification
QString msg = tr("You received %n new notification(s) from %2.", "", accNotified[accNotified.keys().at(0)]).arg(accNotified.keys().at(0));