From 3d66c5f5b02ad6332becd73a8a318a4fbf2384b9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 18 Aug 2020 17:28:36 +0100 Subject: [PATCH] Fix displaying icon on the icon column --- src/profile/ProfileModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profile/ProfileModel.cpp b/src/profile/ProfileModel.cpp index f21fe54a..f290fe7f 100644 --- a/src/profile/ProfileModel.cpp +++ b/src/profile/ProfileModel.cpp @@ -64,7 +64,7 @@ QVariant ProfileModel::data(const QModelIndex& idx, int role) const case NAME: { switch (role) { case Qt::DisplayRole: return QStringLiteral("%1%2").arg(profile->name(), (idx.row() == 0 ? i18n("(Default)") : QString())); - case Qt::DecorationRole: return profile->icon(); + case Qt::DecorationRole: return QIcon::fromTheme(profile->icon()); case Qt::FontRole: { // Default Profile if (idx.row() == 0) {