[gnome-games] swell-foop: fix saving score twice
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] swell-foop: fix saving score twice
- Date: Sat, 31 Mar 2012 09:25:29 +0000 (UTC)
commit ecf6f660af714a777c132ac9b896a57beb07b99d
Author: Edward Sheldrake <ejsheldrake gmail com>
Date: Fri Mar 30 09:36:46 2012 +0100
swell-foop: fix saving score twice
Fix saving the high score twice if you close swell-foop after finishing a game.
https://bugzilla.gnome.org/show_bug.cgi?id=673148
swell-foop/src/swell-foop.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/swell-foop/src/swell-foop.vala b/swell-foop/src/swell-foop.vala
index b673533..4e2b9ae 100644
--- a/swell-foop/src/swell-foop.vala
+++ b/swell-foop/src/swell-foop.vala
@@ -206,7 +206,7 @@ public class SwellFoop : Gtk.Application
base.shutdown ();
/* Record the score if the game isn't over. */
- if (game != null && game.score > 0)
+ if (game != null && !game.has_completed() && game.score > 0)
high_scores.add_plain_score (game.score);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]