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:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user