mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
UI: Process Qt events once after destroy queue finishes
This commit is contained in:
parent
1c3ae0707c
commit
2918d77e58
|
@ -4895,6 +4895,11 @@ void OBSBasic::ClearSceneData()
|
|||
QApplication::sendPostedEvents(nullptr);
|
||||
} while (obs_wait_for_destroy_queue());
|
||||
|
||||
/* Pump Qt events one final time to give remaining signals time to be
|
||||
* processed (since this happens after the destroy thread finishes and
|
||||
* the audio/video threads have processed their tasks). */
|
||||
QApplication::sendPostedEvents(nullptr);
|
||||
|
||||
unsetCursor();
|
||||
|
||||
/* If scene data wasn't actually cleared, e.g. faulty plugin holding a
|
||||
|
|
Loading…
Reference in a new issue