- remove runner crash message dialog

This commit is contained in:
royqh1979 2021-09-04 19:37:33 +08:00
parent 44ed24f016
commit ad2310d4b5
3 changed files with 10 additions and 10 deletions

Binary file not shown.

View File

@ -412,7 +412,7 @@
'%1' '%1'
'%2' '%2'
Are you really want to continue?</source> Are you really want to continue?</source>
<translation>C++ will将会清除现有的编译器配置列: <translation>C++ :
&apos;%1&apos; &apos;%1&apos;
&apos;%2&apos; &apos;%2&apos;
</translation> </translation>
@ -1273,13 +1273,13 @@ Are you really want to continue?</source>
<name>ExecutableRunner</name> <name>ExecutableRunner</name>
<message> <message>
<location filename="compiler/executablerunner.cpp" line="65"/> <location filename="compiler/executablerunner.cpp" line="65"/>
<source>The runner process failed to start.</source> <source>The runner process &apos;%1&apos; failed to start.</source>
<translation></translation> <oldsource>The runner process failed to start.</oldsource>
<translation type="unfinished">&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="compiler/executablerunner.cpp" line="69"/>
<source>The runner process crashed after starting successfully.</source> <source>The runner process crashed after starting successfully.</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="compiler/executablerunner.cpp" line="72"/> <location filename="compiler/executablerunner.cpp" line="72"/>

View File

@ -62,12 +62,12 @@ void ExecutableRunner::run()
if (errorOccurred) { if (errorOccurred) {
switch (process.error()) { switch (process.error()) {
case QProcess::FailedToStart: case QProcess::FailedToStart:
emit runErrorOccurred(tr("The runner process failed to start.")); emit runErrorOccurred(tr("The runner process '%1' failed to start.").arg(mFilename));
break;
case QProcess::Crashed:
if (!mStop)
emit runErrorOccurred(tr("The runner process crashed after starting successfully."));
break; break;
// case QProcess::Crashed:
// if (!mStop)
// emit runErrorOccurred(tr("The runner process crashed after starting successfully."));
// break;
case QProcess::Timedout: case QProcess::Timedout:
emit runErrorOccurred(tr("The last waitFor...() function timed out.")); emit runErrorOccurred(tr("The last waitFor...() function timed out."));
break; break;