diff options
-rw-r--r-- | qt-models/cylindermodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 8c9bee8b1..8341d3608 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -111,18 +111,20 @@ QVariant CylindersModel::data(const QModelIndex &index, int role) const } break; case Qt::DecorationRole: - if (index.column() == REMOVE) + if (index.column() == REMOVE) { if (rowCount() > 1) ret = trashIcon(); else ret = trashForbiddenIcon(); + } break; case Qt::SizeHintRole: - if (index.column() == REMOVE) + if (index.column() == REMOVE) { if (rowCount() > 1) ret = trashIcon(); else ret = trashForbiddenIcon(); + } break; case Qt::ToolTipRole: |