Commit 4cf86a4f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Git: Inline a signal connection

Change-Id: I973ad0dad22df95fccfaa0ed5190bed696233e8c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 38bea873
......@@ -1999,11 +1999,6 @@ void GitClient::finishSubmoduleUpdate()
m_updatedSubmodules.clear();
}
void GitClient::fetchFinished(const QVariant &cookie)
{
GitPlugin::instance()->updateBranches(cookie.toString());
}
GitClient::StatusResult GitClient::gitStatus(const QString &workingDirectory, StatusMode mode,
QString *output, QString *errorMessage) const
{
......@@ -2757,8 +2752,9 @@ void GitClient::fetch(const QString &workingDirectory, const QString &remote)
QStringList arguments(QLatin1String("fetch"));
arguments << (remote.isEmpty() ? QLatin1String("--all") : remote);
VcsCommand *command = vcsExec(workingDirectory, arguments, 0, true,
VcsCommand::ShowSuccessMessage, workingDirectory);
connect(command, &VcsCommand::success, this, &GitClient::fetchFinished);
VcsCommand::ShowSuccessMessage);
connect(command, &VcsCommand::success,
this, [workingDirectory]() { GitPlugin::instance()->updateBranches(workingDirectory); });
}
bool GitClient::executeAndHandleConflicts(const QString &workingDirectory,
......
......@@ -343,7 +343,6 @@ public slots:
private:
void finishSubmoduleUpdate();
void fetchFinished(const QVariant &cookie);
void slotChunkActionsRequested(QMenu *menu, bool isValid);
void slotStageChunk();
void slotUnstageChunk();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment