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

Git: Inline a signal connection

Change-Id: I973ad0dad22df95fccfaa0ed5190bed696233e8c
Reviewed-by: default avatarTobias Hunger <>
parent 38bea873
......@@ -1999,11 +1999,6 @@ void GitClient::finishSubmoduleUpdate()
void GitClient::fetchFinished(const QVariant &cookie)
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);
connect(command, &VcsCommand::success,
this, [workingDirectory]() { GitPlugin::instance()->updateBranches(workingDirectory); });
bool GitClient::executeAndHandleConflicts(const QString &workingDirectory,
......@@ -343,7 +343,6 @@ public slots:
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