forked from qt-creator/qt-creator
Fix commit to mercurial repositories
Tasknumber: QTCREATORBUG-7511 Change-Id: I07991c1d96b3239e66d47d9c7d5c85f8fdc14af4 Reviewed-by: Hugues Delorme <delorme.hugues@fougsys.fr>
This commit is contained in:
@@ -552,8 +552,8 @@ void MercurialPlugin::commit()
|
||||
|
||||
m_submitRepository = state.topLevel();
|
||||
|
||||
connect(m_client, SIGNAL(parsedStatus(QList<VcsBaseClient::StatusItem>)),
|
||||
this, SLOT(showCommitWidget(QList<VcsBaseClient::StatusItem>)));
|
||||
connect(m_client, SIGNAL(parsedStatus(QList<VcsBase::VcsBaseClient::StatusItem>)),
|
||||
this, SLOT(showCommitWidget(QList<VcsBase::VcsBaseClient::StatusItem>)));
|
||||
m_client->emitParsedStatus(m_submitRepository);
|
||||
}
|
||||
|
||||
@@ -562,8 +562,8 @@ void MercurialPlugin::showCommitWidget(const QList<VcsBaseClient::StatusItem> &s
|
||||
|
||||
VcsBaseOutputWindow *outputWindow = VcsBaseOutputWindow::instance();
|
||||
//Once we receive our data release the connection so it can be reused elsewhere
|
||||
disconnect(m_client, SIGNAL(parsedStatus(QList<VcsBaseClient::StatusItem>)),
|
||||
this, SLOT(showCommitWidget(QList<VcsBaseClient::StatusItem>)));
|
||||
disconnect(m_client, SIGNAL(parsedStatus(QList<VcsBase::VcsBaseClient::StatusItem>)),
|
||||
this, SLOT(showCommitWidget(QList<VcsBase::VcsBaseClient::StatusItem>)));
|
||||
|
||||
if (status.isEmpty()) {
|
||||
outputWindow->appendError(tr("There are no changes to commit."));
|
||||
|
Reference in New Issue
Block a user