use the QProcess startDetached method and not the static one.
This commit is contained in:
parent
0760a836b4
commit
71a7267028
@ -2565,7 +2565,9 @@ void PTextEdit::musrView()
|
||||
#endif
|
||||
proc.setProgram(cmd);
|
||||
proc.setProcessEnvironment(env);
|
||||
if (!proc.startDetached(cmd, arg, workDir)) {
|
||||
proc.setArguments(arg);
|
||||
proc.setWorkingDirectory(workDir);
|
||||
if (!proc.startDetached()) {
|
||||
QString msg = QString("musrview failed. Possible reasons:\n");
|
||||
msg += QString("* corrupted msr-file.\n");
|
||||
msg += QString("* cannot read data-file.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user