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

List:       kde-commits
Subject:    [kactivities] service/plugins/activityranking: Ranking plugin: do not store data for activity in lim
From:       Lamarque V. Souza <lamarque () kde ! org>
Date:       2012-03-15 2:04:21
Message-ID: 20120315020421.B0683A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 3d25469a943777e03ce3ce62c899b23f1f34c4b6 by Lamarque V. Souza.
Committed on 15/03/2012 at 03:02.
Pushed by lvsouza into branch 'master'.

Ranking plugin: do not store data for activity in limbo state.

M  +5    -0    service/plugins/activityranking/activityranking.cpp

http://commits.kde.org/kactivities/3d25469a943777e03ce3ce62c899b23f1f34c4b6

diff --git a/service/plugins/activityranking/activityranking.cpp \
b/service/plugins/activityranking/activityranking.cpp index 4b46616..4503672 100644
--- a/service/plugins/activityranking/activityranking.cpp
+++ b/service/plugins/activityranking/activityranking.cpp
@@ -512,6 +512,11 @@ ActivityRankingPlugin::~ActivityRankingPlugin()
 
 void ActivityRankingPlugin::activityChanged(const QString & activity)
 {
+    // activity in limbo state, ignore it.
+    if (activity.isEmpty()) {
+        return;
+    }
+
     qint64 currentTime = QDateTime::currentMSecsSinceEpoch();
 
     kDebug() << ">>>> we have the new activity" << activity;


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

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