View Single Post
Old 04-01-2021, 01:49 PM   #478
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
IIRC TemplateDialog.reject(self) was problematic because it also closes the parent dialog (which is the chains dialog when the template dialog is a conditions dialog). That is why I implemented reject in the first place. I will call self.save_geometry() from both, unless I shouldn't for some reason.
Use TemplateDialog.accept() but not .reject() and don't call save_geometry(). If you don't want to do that then don't call save_geometry() in reject. TemplateDialog itself does not call it in reject().
chaley is offline   Reply With Quote