From 3171cb27201ef01a73f4648d9271277428563797 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 16 Sep 2020 13:38:52 +0200 Subject: [PATCH] If there's no description just say nothing Otherwise we get lots of "No description available" lines in the activity list which is basically noise. Also trains the user to ignore the secondary line. Signed-off-by: Kevin Ottens --- src/gui/tray/ActivityListModel.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gui/tray/ActivityListModel.cpp b/src/gui/tray/ActivityListModel.cpp index 1f05038d7..f6b00f8f6 100644 --- a/src/gui/tray/ActivityListModel.cpp +++ b/src/gui/tray/ActivityListModel.cpp @@ -202,9 +202,6 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const case ActionTextColorRole: return a._id == -1 ? QLatin1String("#808080") : QLatin1String("#222"); // FIXME: This is a temporary workaround for _showMoreActivitiesAvailableEntry case MessageRole: - if (a._message.isEmpty()) { - return QString("No description available."); - } return a._message; case LinkRole: { if (a._link.isEmpty()) {