From a5e92b3ca11ce4c79da2d6450432bfe3e8d140df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=C4=8Cuki=C4=87?= Date: Mon, 10 Oct 2016 18:12:02 +0200 Subject: [PATCH] Filtering now checks for the null activity --- libtaskmanager/taskfilterproxymodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtaskmanager/taskfilterproxymodel.cpp b/libtaskmanager/taskfilterproxymodel.cpp index c1017c0fa..9a28720da 100644 --- a/libtaskmanager/taskfilterproxymodel.cpp +++ b/libtaskmanager/taskfilterproxymodel.cpp @@ -21,6 +21,8 @@ License along with this library. If not, see . #include "taskfilterproxymodel.h" #include "abstracttasksmodel.h" +#include "launchertasksmodel_p.h" + namespace TaskManager { @@ -287,7 +289,7 @@ bool TaskFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &so if (!activities.isNull()) { const QStringList l = activities.toStringList(); - if (!l.isEmpty() && !l.contains(d->activity)) { + if (!l.isEmpty() && !l.contains(NULL_UUID) && !l.contains(d->activity)) { return false; } }