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);