Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /leo/plugins/gtkDialogs.py

leo
Discussion topic

Back to topic list

CVS update: /leo/plugins/gtkDialogs.py

Author plumloco
Full name Robert Ledger
Date 2008-01-12 05:34:19 PST
Message User: plumloco
Date: 2008-01-12 05:34:19-0800
Log:
 Fixe c is None bug in hook handler

File Changes:

Directory: /leo/plugins/
========================

File [changed]: gtkDialogs.py
Url: http://leo.tigris.or​g/source/browse/leo/​plugins/gtkDialogs.p​y?r1=1.2&r2=1.3
Delta lines: +6 -2
-------------------
--- gtkDialogs.py 2008-01-10 04:46:32-0800 1.2
+++ gtkDialogs.py 2008-01-12 05:34:16-0800 1.3
@@ -36,7 +36,9 @@
 #@@killcolor
 #@+at
 #
-# 0.1 plumloco: Initial version
+# 1.1 plumloco: Initial version
+# 1.2 plumloco: Changed root node to fit in leoPlugins
+# 1.3 plumloco: check for c is None in hook handler
 #@-at
 #@nonl
 #@-node:bob.20071220​123624:<< version history >>
@@ -64,7 +66,7 @@
 #@-node:bob.20071220​110146:<< imports >>
 #@nl
 
-__revision__ = re.sub(r'^\D+([\d\.]+)\D+$', r'\1', "$Revision: 1.2 $")
+__revision__ = re.sub(r'^\D+([\d\.]+)\D+$', r'\1', "$Revision: 1.3 $")
 
 __version__ = '0.%s'% __revision__
 
@@ -101,6 +103,8 @@
 
 
     c = keywords.get('c')
+ if not c:
+ return
 
     global pythoncommand

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /leo/plugins/gtkDialogs.py plumloco Robert Ledger 2008-01-12 05:34:19 PST
Messages per page: