[gnome-games/gnome-3-4] swell-foop: fix saving score twice
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-3-4] swell-foop: fix saving score twice
- Date: Sat, 31 Mar 2012 09:27:16 +0000 (UTC)
commit 4f4e90c45695dd5ff351358f5b6935efddefee7e
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 d5a2ddb..c937646 100644
--- a/swell-foop/src/swell-foop.vala
+++ b/swell-foop/src/swell-foop.vala
@@ -208,7 +208,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]