mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Send DeferredDelete events explicitly in our main event loop
* It's not entirely clear if this is the intended fix, but otherwise since we're not running QApplication::exec() the main event loop has the same 'loop level' of 0 as the event level when it's fired. The proper functioning seems to be that the posted deleteLater event should have an event level of 1 which then means it will be processed when coming back to the exec() loop level of 0, but since we don't get that, just run it manually after all other events.
This commit is contained in:
@@ -234,6 +234,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
application.processEvents(QEventLoop::WaitForMoreEvents);
|
||||
QCoreApplication::sendPostedEvents();
|
||||
QCoreApplication::sendPostedEvents(NULL, QEvent::DeferredDelete);
|
||||
}
|
||||
|
||||
config.Save();
|
||||
|
||||
Reference in New Issue
Block a user