Emit finished signal even on non-normal exits

This is a followup to 7932e3a as it would otherwise be hard to detect processes
terminated by internally or externally sent signals.

Without this patch the widget continues to operate as if nothing has changed without offering a way to react to the termination from within the application.
This commit is contained in:
Adrian Kummerlaender
2015-09-04 21:43:57 +02:00
parent df551b8812
commit 62a80634fa
+3 -3
View File
@@ -607,12 +607,12 @@ void Session::done(int exitStatus)
}
}
if ( !_wantedClose && _shellProcess->exitStatus() != QProcess::NormalExit )
if ( !_wantedClose && _shellProcess->exitStatus() != QProcess::NormalExit ) {
message.sprintf("Session '%s' exited unexpectedly.",
_nameTitle.toUtf8().data());
else
emit finished();
}
emit finished();
}
Emulation * Session::emulation() const