mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
osd/modules/debugger/debugqt.cpp: Don't try closing windows if debugger console wasn't created.
This commit is contained in:
parent
19c15659dc
commit
00418d9406
@ -103,10 +103,12 @@ void debug_qt::exit()
|
||||
{
|
||||
// If you've done a hard reset, clear out existing widgets
|
||||
if (m_mainwindow)
|
||||
{
|
||||
m_mainwindow->setExiting();
|
||||
QApplication::closeAllWindows();
|
||||
qApp->processEvents(QEventLoop::AllEvents, 1);
|
||||
m_mainwindow = nullptr;
|
||||
QApplication::closeAllWindows();
|
||||
qApp->processEvents(QEventLoop::AllEvents, 1);
|
||||
m_mainwindow = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user