Use "if(logbook_path)" rather than "if(logbook_path is not None)" since we also don't want to consider the case where logbook_path is an empty string.

pull/61/head
Christian T. Jacobs 2017-07-06 00:11:08 +01:00
rodzic 6a2cc5decf
commit dac5c11af9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -110,7 +110,7 @@ class PyQSO:
# Hide the Toolbox by default.
self.toolbox.toggle_visible_callback()
if(logbook_path is not None):
if(logbook_path):
logging.info("Opening logbook: %s" % logbook_path)
self.logbook.open(widget=None, path=logbook_path)
else: