forked from qt-creator/qt-creator
ShellCommand: Merge VcsCommand::VcsRunFlags into RunFlags
Use ShellCommand class name in signal-slot connections. Change-Id: Id50ee6887708558a2ba0972ece6c420b0be36f72 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -197,8 +197,8 @@ void ChangeSelectionDialog::recalculateCompletion()
|
||||
GitClient *client = GitClient::instance();
|
||||
VcsBase::VcsCommand *command = client->asyncForEachRefCmd(
|
||||
workingDir, {"--format=%(refname:short)"});
|
||||
connect(this, &QObject::destroyed, command, &VcsBase::VcsCommand::abort);
|
||||
connect(command, &VcsBase::VcsCommand::stdOutText, [this](const QString &output) {
|
||||
connect(this, &QObject::destroyed, command, &ShellCommand::abort);
|
||||
connect(command, &ShellCommand::stdOutText, [this](const QString &output) {
|
||||
m_changeModel->setStringList(output.split('\n'));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user