From c9376fa1b6b67a3d18c5272ad60486d7a21a3cff Mon Sep 17 00:00:00 2001 From: Anselme Date: Tue, 25 Aug 2015 13:37:03 +0200 Subject: [PATCH] another fix --- app/todomodule.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/todomodule.cpp b/app/todomodule.cpp index f9e90f7..736b5e4 100644 --- a/app/todomodule.cpp +++ b/app/todomodule.cpp @@ -87,8 +87,7 @@ bool TodoModule::messageHandler(Message msg) QDateTime date = QDateTime::currentDateTime(); minutes += hours*60; seconds += minutes*60; - date.addSecs(seconds); - t.date = date.toTime_t(); + t.date = date.addSecs(seconds).toTime_t(); } ++deltaIndex; if(splitter[deltaIndex].compare("every") == 0)