Fix commit to mercurial repositories

Tasknumber: QTCREATORBUG-7511

Change-Id: I07991c1d96b3239e66d47d9c7d5c85f8fdc14af4
Reviewed-by: Hugues Delorme <delorme.hugues@fougsys.fr>
This commit is contained in:
Tobias Hunger
2012-06-07 10:39:35 +02:00
parent 5d01b60d56
commit ec5c280e21

View File

@@ -552,8 +552,8 @@ void MercurialPlugin::commit()
m_submitRepository = state.topLevel(); m_submitRepository = state.topLevel();
connect(m_client, SIGNAL(parsedStatus(QList<VcsBaseClient::StatusItem>)), connect(m_client, SIGNAL(parsedStatus(QList<VcsBase::VcsBaseClient::StatusItem>)),
this, SLOT(showCommitWidget(QList<VcsBaseClient::StatusItem>))); this, SLOT(showCommitWidget(QList<VcsBase::VcsBaseClient::StatusItem>)));
m_client->emitParsedStatus(m_submitRepository); m_client->emitParsedStatus(m_submitRepository);
} }
@@ -562,8 +562,8 @@ void MercurialPlugin::showCommitWidget(const QList<VcsBaseClient::StatusItem> &s
VcsBaseOutputWindow *outputWindow = VcsBaseOutputWindow::instance(); VcsBaseOutputWindow *outputWindow = VcsBaseOutputWindow::instance();
//Once we receive our data release the connection so it can be reused elsewhere //Once we receive our data release the connection so it can be reused elsewhere
disconnect(m_client, SIGNAL(parsedStatus(QList<VcsBaseClient::StatusItem>)), disconnect(m_client, SIGNAL(parsedStatus(QList<VcsBase::VcsBaseClient::StatusItem>)),
this, SLOT(showCommitWidget(QList<VcsBaseClient::StatusItem>))); this, SLOT(showCommitWidget(QList<VcsBase::VcsBaseClient::StatusItem>)));
if (status.isEmpty()) { if (status.isEmpty()) {
outputWindow->appendError(tr("There are no changes to commit.")); outputWindow->appendError(tr("There are no changes to commit."));