gnome-games r8222 - branches/gnome-2-24/gnome-sudoku/src/lib
- From: thomashpa svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: gnome-games r8222 - branches/gnome-2-24/gnome-sudoku/src/lib
 
- Date: Fri, 31 Oct 2008 00:42:53 +0000 (UTC)
 
Author: thomashpa
Date: Fri Oct 31 00:42:53 2008
New Revision: 8222
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8222&view=rev
Log:
Make sure the dancer can not be activated while already running by using the auto fill. Fixes bug #532357. Patch by Zhang Sen
Modified:
   branches/gnome-2-24/gnome-sudoku/src/lib/main.py
Modified: branches/gnome-2-24/gnome-sudoku/src/lib/main.py
==============================================================================
--- branches/gnome-2-24/gnome-sudoku/src/lib/main.py	(original)
+++ branches/gnome-2-24/gnome-sudoku/src/lib/main.py	Fri Oct 31 00:42:53 2008
@@ -463,6 +463,8 @@
 
     @simple_debug
     def you_win_callback (self,grid):
+        if hasattr(self, 'dancer'):
+            return
         self.won = True
         # increase difficulty for next time.
         self.gconf['difficulty']=self.gconf['difficulty']+0.1
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]