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

View File

@ -62,12 +62,12 @@ void ExecutableRunner::run()
if (errorOccurred) {
switch (process.error()) {
case QProcess::FailedToStart:
emit runErrorOccurred(tr("The runner process failed to start."));
break;
case QProcess::Crashed:
if (!mStop)
emit runErrorOccurred(tr("The runner process crashed after starting successfully."));
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;
case QProcess::Timedout:
emit runErrorOccurred(tr("The last waitFor...() function timed out."));
break;