Fix delayed call to _record_modified

As it is called via idle_add, the form could have been destroyed in the
meantime.
This commit is contained in:
Cédric Krier committed 2012-03-02 14:09:48 +01:00
1 parent d6afcdafb1
commit a2458fcc79
1 file changed
+4 -1
+4 -1
View File
@@ -479,7 +479,10 @@ class Form(SignalEvent, TabContent):
self.activate_save()
def _record_modified(self, screen, signal_data):
self.activate_save()
# As it is called via idle_add, the form could have been destroyed in
# the meantime.
if screen == self.screen:
self.activate_save()
def _record_saved(self, screen, signal_data):
self.activate_save()