From 1f32d2cdd8810421845e046cf921952fa6ef704e Mon Sep 17 00:00:00 2001 From: Pierre Ratinaud Date: Mon, 3 Nov 2014 09:35:43 +0100 Subject: [PATCH] ... --- analysetxt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/analysetxt.py b/analysetxt.py index 92eb650..33f7d12 100644 --- a/analysetxt.py +++ b/analysetxt.py @@ -69,6 +69,8 @@ class AnalyseText : DoConf().makeoptions([self.parametres['type']], [self.parametres], self.pathout['Analyse.ira']) self.ira.history.add(self.parametres) if dlg : + if not isinstance(dlg, int) : + dlg.Destroy() self.dlg.Destroy() OpenAnalyse(self.parent, self.parametres['ira']) self.ira.tree.AddAnalyse(self.parametres) @@ -78,7 +80,7 @@ class AnalyseText : if dlg : self.dlg.Destroy() else : - #if dlg : + #if isinstance(dlg, wx.ProgressDialog) : # self.dlg.Destroy() self.val = False -- 2.7.4