diff --git a/src/artmodel.cpp b/src/artmodel.cpp index cff1274..9da21fc 100644 --- a/src/artmodel.cpp +++ b/src/artmodel.cpp @@ -75,8 +75,10 @@ QVariant ArtModel::data(const QModelIndex &index, const int role) const if (role == Qt::DisplayRole) { switch (index.column()) { - case 0: - return m_artPieces[index.row()].filename; + case 0: { + const QString filename = m_artPieces[index.row()].filename; + return filename.split('/').last(); + } case 1: return {}; case 2: