Unpause the emulation after shutdown request on SDL close, so that it can take effect.
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Jun 2007 17:56:50 +0000 (17:56 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Jun 2007 17:56:50 +0000 (17:56 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2989 c046a42c-6fe2-441c-8c8c-71466251a162

sdl.c

diff --git a/sdl.c b/sdl.c
index 326935a..5e70ac0 100644 (file)
--- a/sdl.c
+++ b/sdl.c
@@ -451,7 +451,8 @@ static void sdl_refresh(DisplayState *ds)
             break;
         case SDL_QUIT:
             if (!no_quit) {
-               qemu_system_shutdown_request();
+                qemu_system_shutdown_request();
+                vm_start();    /* In case we're paused */
             }
             break;
         case SDL_MOUSEMOTION: