make this work under Linux

This commit is contained in:
Arisotura
2022-09-04 22:03:47 +02:00
parent 80e5c01dd7
commit d7f448daf1
2 changed files with 77 additions and 24 deletions

View File

@ -2612,10 +2612,12 @@ void MainWindow::onTest()
{
//QProcess::startDetached(QApplication::applicationFilePath());
QProcess ass;
#ifdef __WIN32__
ass.setCreateProcessArgumentsModifier([] (QProcess::CreateProcessArguments *args)
{
args->flags |= CREATE_NEW_CONSOLE;
});
#endif
ass.startDetached(QApplication::applicationFilePath());
}