mirror of https://github.com/PCSX2/pcsx2.git
pcsx2 gui: do not call swap iso when isofile did not change.
Note: the code avoids some locking which turn into deadlock with GSOpen1 plugins. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4273 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
3f1e272d27
commit
1205f01700
|
@ -61,6 +61,16 @@ void RecentIsoManager::OnChangedSelection( wxCommandEvent& evt )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actually there is no change on the selection so the event can be skip
|
||||||
|
// Note: It also avoids a deadlock which appears when the core thread is already paused
|
||||||
|
// and ScopedCoreThreadPopup try to stop the thread (GSOpen1 code path)
|
||||||
|
if( (g_Conf->CdvdSource == CDVDsrc_Iso) && (m_Items[i].Filename == g_Conf->CurrentIso) )
|
||||||
|
{
|
||||||
|
evt.Skip();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
m_cursel = i;
|
m_cursel = i;
|
||||||
|
|
||||||
ScopedCoreThreadPopup stopped_core;
|
ScopedCoreThreadPopup stopped_core;
|
||||||
|
|
Loading…
Reference in New Issue