mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed a crash on shutdown when the 'no ROMs' dialog was shown
This commit is contained in:
parent
c33ee569f4
commit
a2063f4b5a
|
@ -52,6 +52,9 @@ void SystemView::onShow()
|
||||||
|
|
||||||
void SystemView::onHide()
|
void SystemView::onHide()
|
||||||
{
|
{
|
||||||
|
if (mPrimary == nullptr || mPrimary->getCursor() > static_cast<int>(mSystemElements.size() - 1))
|
||||||
|
return;
|
||||||
|
|
||||||
for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents)
|
for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents)
|
||||||
video->stopVideoPlayer(false);
|
video->stopVideoPlayer(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue