[bugfix] was only checking current data processing state

This commit is contained in:
Marcel Paffrath 2018-04-25 14:01:05 +02:00
parent d6150c5d1a
commit 644470f156

View File

@ -1321,9 +1321,12 @@ class MainWindow(QMainWindow):
False: 'raw',
None: None}
# self.data.processed is only None for PyLoT datastructure, else True or False
wf_dir = wf_stat[self.data.processed]
if wf_dir is not None:
event_path = os.path.join(event_path, wf_dir)
if wf_dir is 'processed' and not os.path.exists(event_path):
event_path = os.path.join(event_path, 'raw')
return not bool(os.listdir(event_path))
def filename_from_action(self, action):