mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-21 17:17:06 +02:00
startExecutable(): Forward executable's output, so vcmiclient's stdout and stderr aren't hidden
This commit is contained in:
parent
31caf73383
commit
6687d3b684
@ -113,6 +113,7 @@ void startExecutable(QString name, const QStringList & args)
|
||||
// QProcess::start() causes the launcher window to freeze while the child process is running, so we hide it in
|
||||
// MainWindow::on_startGameButton_clicked() and MainWindow::on_startEditorButton_clicked()
|
||||
QProcess process;
|
||||
process.setProcessChannelMode(QProcess::ForwardedChannels);
|
||||
process.start(name, args);
|
||||
process.waitForFinished(-1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user