Fix Activity List: Add check to avoid first empty entry
authorMichael Schuster <michael@schuster.ms>
Wed, 18 Dec 2019 02:01:27 +0000 (03:01 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Wed, 18 Dec 2019 02:29:54 +0000 (03:29 +0100)
commitcc21d175f17ed158cbc5a667f03da9ff27015f24
treeed34c8386650bf742df8116b33cf8a93b662fe89
parentade4b198cffcfc9ea49a408407656364453e12c0
Fix Activity List: Add check to avoid first empty entry

Add checks to ActivityListModel::combineActivityLists in order to avoid adding
empty Activity entries to the _finalList.

The previous implementation always added an empty entry to the top of the list because
_notificationIgnoredFiles was appended without checking (_listOfIgnoredFiles.size() > 0).

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/activitylistmodel.cpp