[gnome-sudoku/gnome-3-10] check for none in set_value
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku/gnome-3-10] check for none in set_value
- Date: Sun, 29 Jun 2014 20:18:28 +0000 (UTC)
commit 1e89689b37fe473a2528ca32e2b2ebe642524f63
Author: gQuigs gMail com <gQuigs gMail com>
Date: Fri May 30 22:56:00 2014 -0500
check for none in set_value
This fixes undo when only one number is on the board.
https://bugzilla.gnome.org/show_bug.cgi?id=731011
src/lib/number_box.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/number_box.py b/src/lib/number_box.py
index 0eb2188..8aa40ae 100644
--- a/src/lib/number_box.py
+++ b/src/lib/number_box.py
@@ -709,7 +709,7 @@ class NumberBox (Gtk.DrawingArea):
pass
def set_value (self, v):
- if 0 < v <= self.upper:
+ if v != None and 0 < v <= self.upper:
self.set_text(str(v))
else:
self.set_text('')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]