From faac6c58bed1614377d01fb647ec91d08e347d77 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Sun, 10 Dec 2023 13:10:39 +0100 Subject: [PATCH] add comments --- src/ui/DetailView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/DetailView.cpp b/src/ui/DetailView.cpp index 5dbc86af..95b280f1 100644 --- a/src/ui/DetailView.cpp +++ b/src/ui/DetailView.cpp @@ -500,6 +500,7 @@ DetailView::DetailView(const git::Repository &repo, QWidget *parent) mDetail->setVisible(false); layout->addWidget(mDetail); + // Shown when a commit is selected mDetail->addWidget(new CommitDetail(this)); mAuthorLabel = new QLabel(this); @@ -508,6 +509,7 @@ DetailView::DetailView(const git::Repository &repo, QWidget *parent) &DetailView::authorLinkActivated); updateAuthor(); + // Shown when the working directory is dirty mCommitEditor = new CommitEditor(repo, this); auto editorFrame = new QWidget(this);