[chirp_devel] [PATCH] Initialize Dialog before calling set_default_response() #7431
![](https://secure.gravatar.com/avatar/e1149e9fb9ea15606658907b38f19983.jpg?s=120&d=mm&r=g)
# HG changeset patch # User Alex Page a.t.page@gmail.com # Date 1591039373 14400 # Mon Jun 01 15:22:53 2020 -0400 # Branch py3 # Node ID ecda15e4be6df1906a981a1c62ef2ee91e5f1305 # Parent 7c4c5bde73f6d6364de8e21abba37fa2ad5052d4 Initialize Dialog before calling set_default_response() #7431
This should fix the dialog box for querying RadioReference, RepeaterBook, etc. These were crashing with "FieldDialog is not initialized".
diff --git a/chirp/ui/inputdialog.py b/chirp/ui/inputdialog.py --- a/chirp/ui/inputdialog.py +++ b/chirp/ui/inputdialog.py @@ -101,12 +101,10 @@ if "buttons" not in kwargs.keys(): kwargs["buttons"] = (gtk.STOCK_OK, gtk.RESPONSE_OK, gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL) - self.__fields = {} + gtk.Dialog.__init__(self, **kwargs) self.set_default_response(gtk.RESPONSE_OK)
- gtk.Dialog.__init__(self, **kwargs) - def response(self, _): LOG.debug("Blocking response") return
![](https://secure.gravatar.com/avatar/50985ef0199366434400d43517dae9a8.jpg?s=120&d=mm&r=g)
Hi Alex,
# HG changeset patch # User Alex Page a.t.page@gmail.com # Date 1591039373 14400 # Mon Jun 01 15:22:53 2020 -0400 # Branch py3 # Node ID ecda15e4be6df1906a981a1c62ef2ee91e5f1305 # Parent 7c4c5bde73f6d6364de8e21abba37fa2ad5052d4 Initialize Dialog before calling set_default_response() #7431
Thanks for submitting these changes. However, I'm not maintaining the GTK UI in the py3 branch anymore as I think it's too much of a dead end at this point. The wxui/ directory is where all the work should go I think.
--Dan
participants (2)
-
Alex Page
-
Dan Smith