by default the last opened event is loaded on restart

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-13 11:14:17 +01:00
parent 903e87e1e1
commit 35e477c13f

View File

@ -85,7 +85,12 @@ class MainWindow(QMainWindow):
self.filterOptionsS = FilterOptions(**filterOptionsS)
# initialize data
self.data = Data()
if self.recentEvents:
lastEvent = self.getLastEvent()
self.data = Data(self, lastEvent)
else:
self.data = Data(self)
self.openWaveformData()
self.dirty = False
self.loadData()
self.updateFilterOptions()