[gnome-games] application-window: Pause game before cheking quit
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] application-window: Pause game before cheking quit
- Date: Sat, 30 Apr 2016 07:18:24 +0000 (UTC)
commit e291294f253cf232588f4101144b1afcb74c7eea
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Apr 30 09:01:56 2016 +0200
application-window: Pause game before cheking quit
Ensures we paused and tried to save the game before checking if we can
safely quit it.
This avoids quitting a game which can quit safely before it saved.
Fixes #288
src/ui/application-window.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 4626082..fe33cf3 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -191,11 +191,11 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
if (content_box.runner == null)
return true;
+ content_box.runner.pause ();
+
if (content_box.runner.can_quit_safely)
return true;
- content_box.runner.pause ();
-
var dialog = new QuitDialog ();
dialog.set_transient_for (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]