Ignore empty callsign field when looking up.

pull/61/head
Christian T. Jacobs 2017-07-06 21:23:52 +01:00
rodzic 93d8177932
commit e3f364f085
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -423,6 +423,10 @@ class RecordDialog:
connected = callsign_lookup.connect(username, password)
if(connected):
full_callsign = self.sources["CALL"].get_text()
if(not full_callsign):
# Empty callsign field.
return
# Check whether we want to ignore any prefixes (e.g. "IA/") or suffixes "(e.g. "/M") in the callsign
# before performing the lookup.
if(have_config and config.has_option("records", "ignore_prefix_suffix")):