mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2026-08-01 10:07:23 -04:00
Converted preset options in dialogs to use new enum values.
This commit is contained in:
@@ -336,7 +336,6 @@ void InputDaemon::refreshJoystick(InputDevice *joystick)
|
||||
void InputDaemon::quit()
|
||||
{
|
||||
stopped = true;
|
||||
eventWorker->stop();
|
||||
|
||||
// Wait for SDL to finish. Let worker destructor close SDL.
|
||||
// Let InputDaemon destructor close thread instance.
|
||||
@@ -346,10 +345,16 @@ void InputDaemon::quit()
|
||||
QTimer temptime;
|
||||
connect(eventWorker, SIGNAL(finished()), &q, SLOT(quit()));
|
||||
connect(&temptime, SIGNAL(timeout()), &q, SLOT(quit()));
|
||||
|
||||
eventWorker->stop();
|
||||
temptime.start(1000);
|
||||
q.exec();
|
||||
temptime.stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
eventWorker->stop();
|
||||
}
|
||||
|
||||
delete eventWorker;
|
||||
eventWorker = 0;
|
||||
|
||||
Reference in New Issue
Block a user