mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +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 you've done a hard reset, clear out existing widgets
|
||||||
if (m_mainwindow)
|
if (m_mainwindow)
|
||||||
|
{
|
||||||
m_mainwindow->setExiting();
|
m_mainwindow->setExiting();
|
||||||
QApplication::closeAllWindows();
|
QApplication::closeAllWindows();
|
||||||
qApp->processEvents(QEventLoop::AllEvents, 1);
|
qApp->processEvents(QEventLoop::AllEvents, 1);
|
||||||
m_mainwindow = nullptr;
|
m_mainwindow = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user