Show an error message if the callsign field is empty.

pull/61/head
Christian T. Jacobs 2017-07-06 21:50:03 +01:00
rodzic 21d5dd21ef
commit 7835dc1ff6
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -425,6 +425,7 @@ class RecordDialog:
full_callsign = self.sources["CALL"].get_text()
if(not full_callsign):
# Empty callsign field.
error(parent=self.dialog, message="Please enter a callsign to lookup.")
return
# Check whether we want to ignore any prefixes (e.g. "IA/") or suffixes "(e.g. "/M") in the callsign