ConflictHandler: Use cleanedStdOut() and cleanedStdErr()

Instead of connecting to stdOutText() and stdErrText() signals.

Change-Id: I3a90fe2a6b17eb804dbd67691a4685e236232456
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-09-19 09:41:49 +02:00
parent 66eca4cb4b
commit d78ccc30cb

View File

@@ -731,8 +731,10 @@ public:
handler->setParent(command); // delete when command goes out of scope
command->addFlags(VcsCommand::ExpectRepoChanges);
connect(command, &VcsCommand::stdOutText, handler, &ConflictHandler::readStdOut);
connect(command, &VcsCommand::stdErrText, handler, &ConflictHandler::readStdErr);
connect(command, &VcsCommand::finished, handler, [handler, command] {
handler->readStdOut(command->cleanedStdOut());
handler->readStdErr(command->cleanedStdErr());
});
}
static void handleResponse(const VcsBase::CommandResult &result,