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
|
#endif
|
||||||
proc->setProcessEnvironment(env);
|
proc->setProcessEnvironment(env);
|
||||||
proc->setWorkingDirectory(workDir);
|
proc->setWorkingDirectory(workDir);
|
||||||
|
|
||||||
|
connect(proc, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
|
||||||
|
[=](int exitCode, QProcess::ExitStatus exitStatus){ fileReload(); });
|
||||||
|
|
||||||
proc->start(cmd, arg);
|
proc->start(cmd, arg);
|
||||||
if (!proc->waitForStarted()) {
|
if (!proc->waitForStarted()) {
|
||||||
// error handling
|
// error handling
|
||||||
@ -2658,7 +2662,7 @@ void PTextEdit::musrT0()
|
|||||||
msg,
|
msg,
|
||||||
tr("Quit") );
|
tr("Quit") );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -2643,6 +2643,10 @@ void PTextEdit::musrT0()
|
|||||||
#endif
|
#endif
|
||||||
proc->setProcessEnvironment(env);
|
proc->setProcessEnvironment(env);
|
||||||
proc->setWorkingDirectory(workDir);
|
proc->setWorkingDirectory(workDir);
|
||||||
|
|
||||||
|
connect(proc, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
|
||||||
|
[=](int exitCode, QProcess::ExitStatus exitStatus){ fileReload(); });
|
||||||
|
|
||||||
proc->start(cmd, arg);
|
proc->start(cmd, arg);
|
||||||
if (!proc->waitForStarted()) {
|
if (!proc->waitForStarted()) {
|
||||||
// error handling
|
// error handling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user