Git: Move msgRepositoryLabel from StashDialog to GitPlugin

It's being used by many dialogs.

Change-Id: I3ef484cf8b9cc56210be1de5b4f201eb2f96ef67
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2017-02-04 22:02:04 +02:00
committed by Orgad Shaneh
parent 5b50854e57
commit 67933e4c1f
6 changed files with 11 additions and 14 deletions

View File

@@ -32,7 +32,6 @@
#include "gitutils.h"
#include "gitconstants.h"
#include "ui_branchdialog.h"
#include "stashdialog.h" // Label helpers
#include <utils/qtcassert.h>
#include <utils/execmenu.h>
@@ -106,7 +105,7 @@ void BranchDialog::refresh(const QString &repository, bool force)
return;
m_repository = repository;
m_ui->repositoryLabel->setText(StashDialog::msgRepositoryLabel(m_repository));
m_ui->repositoryLabel->setText(GitPlugin::msgRepositoryLabel(m_repository));
QString errorMessage;
if (!m_model->refresh(m_repository, &errorMessage))
VcsOutputWindow::appendError(errorMessage);