Prevent to add empty on_write

This commit is contained in:
Cédric Krier committed 2009-03-16 09:43:33 +01:00
1 parent 2cd56a5a66
commit b6d86ac539
1 file changed
+2 -1
+2 -1
View File
@@ -385,7 +385,8 @@ class Screen(SignalEvent):
return position
def set_on_write(self, func_name):
self.models.on_write.add(func_name)
if func_name:
self.models.on_write.add(func_name)
def cancel_current(self):
if self.current_model: