diff --git a/src/ui/CommitList.cpp b/src/ui/CommitList.cpp index b33b75cd..49835ea3 100644 --- a/src/ui/CommitList.cpp +++ b/src/ui/CommitList.cpp @@ -787,7 +787,16 @@ public: // Draw content. git::Commit commit = index.data(CommitList::Role::CommitRole).value(); - if (commit.isValid()) { + if (!commit.isValid()) { + // special case for uncommitted changes + QString message = index.model()->data(index).toString(); + painter->save(); + QFont italic = opt.font; + italic.setItalic(true); + painter->setFont(italic); + painter->drawText(opt.rect, Qt::AlignCenter, message); + painter->restore(); + } else { const QFontMetrics &fm = opt.fontMetrics; QRect star = rect;