diff --git a/ext/libstrawberry-common/core/workerpool.h b/ext/libstrawberry-common/core/workerpool.h index 421e16197..019a8eb9e 100644 --- a/ext/libstrawberry-common/core/workerpool.h +++ b/ext/libstrawberry-common/core/workerpool.h @@ -292,7 +292,11 @@ void WorkerPool::StartOneWorker(Worker *worker) { qLog(Debug) << "Starting worker" << worker << executable_path_ << worker->local_server_->fullServerName(); // Start the process +#if defined(Q_OS_WIN32) && defined(QT_NO_DEBUG_OUTPUT) && !defined(ENABLE_WIN32_CONSOLE) + worker->process_->setProcessChannelMode(QProcess::SeparateChannels); +#else worker->process_->setProcessChannelMode(QProcess::ForwardedChannels); +#endif worker->process_->start(executable_path_, QStringList() << worker->local_server_->fullServerName()); } diff --git a/src/config.h.in b/src/config.h.in index 4f9f38023..105df7bff 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -67,4 +67,6 @@ #cmakedefine HAVE_WINEXTRAS #cmakedefine HAVE_QPA_QPLATFORMNATIVEINTERFACE_H +#cmakedefine ENABLE_WIN32_CONSOLE + #endif // CONFIG_H_IN