add thread priority option (using QThread)

This commit is contained in:
WarmUpTill
2020-06-06 15:14:08 +02:00
parent 7fef29dafb
commit f03fca85aa
7 changed files with 101 additions and 36 deletions

View File

@@ -89,7 +89,7 @@ void SceneSwitcher::SetStopped()
void SceneSwitcher::on_toggleStartButton_clicked()
{
if (switcher->th.joinable())
if (switcher->th && switcher->th->isRunning())
{
switcher->Stop();
SetStopped();