all repos — mgba @ bb1965a8d0e30e004bb7e9ecfd4807338544dee0

mGBA Game Boy Advance Emulator

Qt: Fix race condition in AssetView
Vicki Pfau vi@endrift.com
Thu, 02 Feb 2017 09:59:28 -0800
commit

bb1965a8d0e30e004bb7e9ecfd4807338544dee0

parent

1ab6d36fa29c522d50eac3d9515568e99138c4f7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/AssetView.cppsrc/platform/qt/AssetView.cpp

@@ -24,7 +24,7 @@ connect(m_controller, SIGNAL(gameStopped(mCoreThread*)), &m_updateTimer, SLOT(stop()));

} void AssetView::updateTiles(bool force) { - if (!m_controller->thread() || !m_controller->thread()->core) { + if (!m_controller->isLoaded()) { return; }