kopia lustrzana https://github.com/ctjacobs/pyqso
Place the ADIF object outside the 'if' statement.
rodzic
77047d5670
commit
3e32142e8a
|
@ -555,12 +555,12 @@ class Logbook:
|
|||
path = None
|
||||
dialog.destroy()
|
||||
|
||||
# Read the records.
|
||||
adif = ADIF()
|
||||
if(path is None):
|
||||
logging.debug("No file path specified.")
|
||||
return
|
||||
else:
|
||||
# Read the records.
|
||||
adif = ADIF()
|
||||
records = adif.read(path)
|
||||
if(records is None):
|
||||
error(parent=self.application.window, message="Could not import the log.")
|
||||
|
|
Ładowanie…
Reference in New Issue