[Bugfix] Attribute path got lost during export in loop over output formats, fixed!

This commit is contained in:
Ludger Küperkoch 2017-08-17 15:38:13 +02:00
parent 3369fb6382
commit 641a3a09e9
2 changed files with 1 additions and 1 deletions

View File

@ -1163,6 +1163,7 @@ class MainWindow(QMainWindow):
saved_as += str(outformat) + ' '
except TypeError:
print('WARNING: Format: {} not yet implemented'.format(outformat))
self.get_data().setEvtData(event)
msg = 'Event {} saved as {} in format(s) {}'.format(event.pylot_id, fbasename, saved_as.strip())
self.update_status(msg)

View File

@ -223,7 +223,6 @@ class Data(object):
self.get_evt_data().resource_id))
self.checkEvent(event, fcheck)
self.setEvtData(event)
self.get_evt_data().path = fnout
self.get_evt_data().write(fnout + fnext, format=evtformat)
# try exporting event
else: