From be5cd589c4b51f05e00905769927115acc58ddf0 Mon Sep 17 00:00:00 2001 From: Robert Colton Date: Sun, 5 Apr 2020 13:43:07 -0400 Subject: [PATCH] Tree Folder DPI Fix (#115) --- Models/TreeModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/TreeModel.cpp b/Models/TreeModel.cpp index 1e2138b2f..debbc198c 100644 --- a/Models/TreeModel.cpp +++ b/Models/TreeModel.cpp @@ -82,7 +82,7 @@ QVariant TreeModel::data(const QModelIndex &index, int role) const { const QIcon &icon = it->second; if (item->type_case() == TypeCase::kFolder && item->child_size() <= 0) { - return icon.pixmap(icon.availableSizes().first(), QIcon::Disabled); + return QIcon(icon.pixmap(icon.availableSizes().first(), QIcon::Disabled)); } return icon; } else if (role == Qt::EditRole || role == Qt::DisplayRole) {