[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [sprinter/gko/master] runners/datetime: fix updating now that the session object isn't added until l
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2014-03-06 10:20:23
Message-ID: E1WLVPb-0007ZS-Fv () scm ! kde ! org
[Download RAW message or body]

Git commit 2fcb9ee1b19616f8b1d10a05597a7409f7ce5c8e by Aaron J. Seigo.
Committed on 26/02/2014 at 13:15.
Pushed by aseigo into branch 'gko/master'.

fix updating now that the session object isn't added until later

M  +1    -1    runners/datetime/datetime.cpp

http://commits.kde.org/sprinter/2fcb9ee1b19616f8b1d10a05597a7409f7ce5c8e

diff --git a/runners/datetime/datetime.cpp b/runners/datetime/datetime.cpp
index d754a81..c01ae10 100644
--- a/runners/datetime/datetime.cpp
+++ b/runners/datetime/datetime.cpp
@@ -56,7 +56,7 @@ void DateTimeSessionData::performUpdate()
     foreach (const Sprinter::QueryMatch &match, matches(SynchronizedMatches)) {
         update = dtr->performMatch(match.data().toString());
 
-        if (update.isValid()) {
+        if (!update.data().isNull()) {
             update.setImage(dtr->image());
             updates << update;
         }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic