try to improve the reload issue of musrT0 called via musredit - Issue #61 on bitbucket.
This commit is contained in:
parent
22178f7869
commit
1f32698b5f
@ -2649,6 +2649,10 @@ void PTextEdit::musrT0()
|
||||
#endif
|
||||
proc->setProcessEnvironment(env);
|
||||
proc->setWorkingDirectory(workDir);
|
||||
|
||||
connect(proc, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
|
||||
[=](int exitCode, QProcess::ExitStatus exitStatus){ fileReload(); });
|
||||
|
||||
proc->start(cmd, arg);
|
||||
if (!proc->waitForStarted()) {
|
||||
// error handling
|
||||
@ -2658,7 +2662,7 @@ void PTextEdit::musrT0()
|
||||
msg,
|
||||
tr("Quit") );
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
@ -2643,6 +2643,10 @@ void PTextEdit::musrT0()
|
||||
#endif
|
||||
proc->setProcessEnvironment(env);
|
||||
proc->setWorkingDirectory(workDir);
|
||||
|
||||
connect(proc, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
|
||||
[=](int exitCode, QProcess::ExitStatus exitStatus){ fileReload(); });
|
||||
|
||||
proc->start(cmd, arg);
|
||||
if (!proc->waitForStarted()) {
|
||||
// error handling
|
||||
|
Loading…
x
Reference in New Issue
Block a user