mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
handle shutdown of OpenMW processes when shutting down OpenCS
This commit is contained in:
parent
3fec253409
commit
431abcb63a
@ -9,6 +9,16 @@ CSMDoc::Runner::Runner() : mRunning (false)
|
|||||||
this, SLOT (finished (int, QProcess::ExitStatus)));
|
this, SLOT (finished (int, QProcess::ExitStatus)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CSMDoc::Runner::~Runner()
|
||||||
|
{
|
||||||
|
if (mRunning)
|
||||||
|
{
|
||||||
|
disconnect (&mProcess, 0, this, 0);
|
||||||
|
mProcess.kill();
|
||||||
|
mProcess.waitForFinished();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CSMDoc::Runner::start (bool delayed)
|
void CSMDoc::Runner::start (bool delayed)
|
||||||
{
|
{
|
||||||
if (!delayed)
|
if (!delayed)
|
||||||
|
@ -17,6 +17,8 @@ namespace CSMDoc
|
|||||||
|
|
||||||
Runner();
|
Runner();
|
||||||
|
|
||||||
|
~Runner();
|
||||||
|
|
||||||
/// \param delayed Flag as running but do not start the OpenMW process yet (the
|
/// \param delayed Flag as running but do not start the OpenMW process yet (the
|
||||||
/// process must be started by another call of start with delayed==false)
|
/// process must be started by another call of start with delayed==false)
|
||||||
void start (bool delayed = false);
|
void start (bool delayed = false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user