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

@@ -28,7 +28,6 @@
#include "gitclient.h"
#include "gitplugin.h"
#include "remotemodel.h"
#include "stashdialog.h" // for messages
#include "ui_remotedialog.h"
#include "ui_remoteadditiondialog.h"
@@ -114,7 +113,7 @@ void RemoteDialog::refresh(const QString &repository, bool force)
if (m_remoteModel->workingDirectory() == repository && !force)
return;
// Refresh
m_ui->repositoryLabel->setText(StashDialog::msgRepositoryLabel(repository));
m_ui->repositoryLabel->setText(GitPlugin::msgRepositoryLabel(repository));
if (repository.isEmpty()) {
m_remoteModel->clear();
} else {