mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Signal Hyperion::finished emits quit slot
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
parent
a4811b7e3c
commit
871540a81b
@ -148,7 +148,7 @@ void Hyperion::start()
|
|||||||
void Hyperion::stop()
|
void Hyperion::stop()
|
||||||
{
|
{
|
||||||
emit finished();
|
emit finished();
|
||||||
thread()->quit();
|
thread()->wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hyperion::freeObjects(bool emitCloseSignal)
|
void Hyperion::freeObjects(bool emitCloseSignal)
|
||||||
|
@ -71,6 +71,7 @@ bool HyperionIManager::startInstance(const quint8& inst, const bool& block)
|
|||||||
connect(hyperionThread, &QThread::finished, hyperionThread, &QObject::deleteLater);
|
connect(hyperionThread, &QThread::finished, hyperionThread, &QObject::deleteLater);
|
||||||
connect(hyperion, &Hyperion::started, HyperionIManager::getInstance(), &HyperionIManager::handleStarted);
|
connect(hyperion, &Hyperion::started, HyperionIManager::getInstance(), &HyperionIManager::handleStarted);
|
||||||
connect(hyperion, &Hyperion::finished, HyperionIManager::getInstance(), &HyperionIManager::handleFinished);
|
connect(hyperion, &Hyperion::finished, HyperionIManager::getInstance(), &HyperionIManager::handleFinished);
|
||||||
|
connect(hyperion, &Hyperion::finished, hyperionThread, &QThread::quit, Qt::DirectConnection);
|
||||||
|
|
||||||
// setup further connections
|
// setup further connections
|
||||||
// from Hyperion
|
// from Hyperion
|
||||||
|
Loading…
Reference in New Issue
Block a user