GTK: Fix emulation stuck paused after closing the general options dialog when the "pause when inactive" option has been toggled.

This commit is contained in:
bgk 2011-03-01 16:48:35 +00:00
parent 4a9bf47455
commit bca14a4b2e
1 changed files with 2 additions and 4 deletions

View File

@ -542,9 +542,7 @@ bool Window::bOnEmuIdle()
bool Window::on_focus_in_event(GdkEventFocus * _pstEvent) bool Window::on_focus_in_event(GdkEventFocus * _pstEvent)
{ {
if (emulating if (emulating && !m_bPaused)
&& ! m_bPaused
&& m_poCoreConfig->oGetKey<bool>("pause_when_inactive"))
{ {
vStartEmu(); vStartEmu();
soundResume(); soundResume();
@ -555,7 +553,7 @@ bool Window::on_focus_in_event(GdkEventFocus * _pstEvent)
bool Window::on_focus_out_event(GdkEventFocus * _pstEvent) bool Window::on_focus_out_event(GdkEventFocus * _pstEvent)
{ {
if (emulating if (emulating
&& ! m_bPaused && !m_bPaused
&& m_poCoreConfig->oGetKey<bool>("pause_when_inactive")) && m_poCoreConfig->oGetKey<bool>("pause_when_inactive"))
{ {
vStopEmu(); vStopEmu();