forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user