Skip to content

Commit

Permalink
Tree Folder DPI Fix (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBColton authored Apr 5, 2020
1 parent 0e79dde commit be5cd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Models/TreeModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit be5cd58

Please sign in to comment.