summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBrett Stottlemyer <bstottle@ford.com>2015-12-25 16:59:01 -0500
committerBrett Stottlemyer <bstottle@ford.com>2015-12-28 16:18:19 +0000
commit183ab84d410bec15b3d6950177b96473383b2fc6 (patch)
tree5c2c7cd5509ff0814e0531d9c00070e19d7093f0 /examples
parentad77151cc87170adf57c36afac4621fbe124e9e1 (diff)
Fix warning in server/TimeModel example
Change-Id: I2237210f4459455c31e91f67e7d694b4c68a24b4 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Allen Winter <allen.winter@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/RemoteObjects/server/TimeModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/RemoteObjects/server/TimeModel.cpp b/examples/RemoteObjects/server/TimeModel.cpp
index 05e6fe7..ac54cbc 100644
--- a/examples/RemoteObjects/server/TimeModel.cpp
+++ b/examples/RemoteObjects/server/TimeModel.cpp
@@ -57,7 +57,7 @@ void MinuteTimer::timerEvent(QTimerEvent *)
QTime now = QTime::currentTime();
if (now.second() == 59 && now.minute() == time.minute() && now.hour() == time.hour()) {
// just missed time tick over, force it, wait extra 0.5 seconds
- time.addSecs(60);
+ time = time.addSecs(60);
timer.start(60500, this);
} else {
time = now;