Commit 14852cda authored by Jonathan L. Verner's avatar Jonathan L. Verner Committed by Igor Kushnir
Browse files

Add refresh action to git more commit toolview ctx menus

Before, when an element in one of the categories (staged/unstaged/...)
was selected, its context menu didn't have the refresh repo action. This
was not very convenient, since one had to first unselect the element and
then trigger the context menu again, when the repo model was out of date.
This commit fixes this minor annoyance.

(cherry picked from commit d660f70c)
parent 21831335
......@@ -229,6 +229,8 @@ CommitToolView::CommitToolView ( QWidget* parent, RepoStatusModel* repostatusmod
= m_toolviewMenu->addAction(QIcon::fromTheme(QStringLiteral("edit-undo")), i18n("Revert unstaged edits"));
// Refresh diffs when documents are saved
connect(ICore::self()->documentController(), &IDocumentController::documentSaved, this,
[=](KDevelop::IDocument* doc) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment