From 31399708f5457593b296b9bc3d6b28358494e223 Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Sun, 6 May 2012 09:45:24 +0000 Subject: [PATCH] 5676: Crashed when verifying data svn: r19449 --- src/plugins/tool/Verify.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/tool/Verify.py b/src/plugins/tool/Verify.py index c6b32224b..257e9b69b 100644 --- a/src/plugins/tool/Verify.py +++ b/src/plugins/tool/Verify.py @@ -297,6 +297,10 @@ class Verify(tool.Tool, ManagedWindow, UpdateCallback): GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) def on_apply_clicked(self, obj): + run_button = self.top.get_object('button4') + close_button = self.top.get_object('button5') + run_button.set_sensitive(False) + close_button.set_sensitive(False) for option in self.options.handler.options_dict: if option in ['estimate_age', 'invdate']: self.options.handler.options_dict[option] = \ @@ -324,11 +328,13 @@ class Verify(tool.Tool, ManagedWindow, UpdateCallback): self.uistate.progress.hide() self.uistate.window.window.set_cursor(None) - self.window.window.set_cursor(None) try: + self.window.window.set_cursor(None) self.vr.window.window.set_cursor(None) except AttributeError: pass + run_button.set_sensitive(True) + close_button.set_sensitive(True) self.reset() # Save options