diff options
Diffstat (limited to 'src/plugins/git/branchdialog.cpp')
-rw-r--r-- | src/plugins/git/branchdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/git/branchdialog.cpp b/src/plugins/git/branchdialog.cpp index 0e9c8c33f1..37a7d33173 100644 --- a/src/plugins/git/branchdialog.cpp +++ b/src/plugins/git/branchdialog.cpp @@ -97,6 +97,12 @@ void BranchDialog::refresh(const QString &repository, bool force) m_ui->branchView->expandAll(); } +void BranchDialog::refreshIfSame(const QString &repository) +{ + if (m_repository == repository) + refresh(); +} + void BranchDialog::enableButtons() { QModelIndex idx = selectedIndex(); |