Use has_option here.

pull/54/head
Christian T. Jacobs 2017-02-07 16:24:16 +00:00
rodzic 2524cd5d94
commit 79d3451d56
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -436,7 +436,7 @@ class RecordDialog(Gtk.Dialog):
# Do we want PyQSO to autocomplete the Band field based on the Frequency field?
(section, option) = ("records", "autocomplete_band")
if(have_config and config.get(section, option)):
if(have_config and config.has_option(section, option)):
autocomplete_band = (config.get(section, option) == "True")
if(autocomplete_band):
self.sources["FREQ"].connect("changed", self._autocomplete_band)