Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2009-08-28 16:48:13 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-02-10 19:19:16 (GMT)
commit5f40f312fd0b94f61a3164cc50bdb1b1627e795d (patch)
treec5e6af9c75c6d19b258990135e2213b3a3c4a016 /src
parentc5a558aea55f8407742890a14b41adf16ae3452a (diff)
Do not pop the error trap twice (pointed out by Sascha Silbe in #1123).
Diffstat (limited to 'src')
-rw-r--r--src/sugar/wm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/wm.py b/src/sugar/wm.py
index 971f3d2..5481d40 100644
--- a/src/sugar/wm.py
+++ b/src/sugar/wm.py
@@ -29,7 +29,7 @@ def _property_get_trapped(window, prop, prop_type):
# We just log a message
error = gtk.gdk.error_trap_pop()
- if gtk.gdk.error_trap_pop():
+ if error:
logging.debug('Received X Error (%i) while getting '
'a property on a window' % error)