From: Kevin Ottens Date: Wed, 16 Sep 2020 11:38:52 +0000 (+0200) Subject: If there's no description just say nothing X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~158^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3171cb27201ef01a73f4648d9271277428563797;p=nextcloud-desktop.git 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 --- 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()) {