get data from the NewEvtDlg dialog for event creation

This commit is contained in:
Sebastian Wehling-Benatelli 2015-01-23 10:21:34 +01:00
parent 64158174e6
commit 23fa136dc5

View File

@ -371,10 +371,10 @@ class MainWindow(QMainWindow):
def createNewEvent(self):
if self.okToContinue():
new = NewEventDlg()
if new.exec_():
if new.exec_() != QDialog.Rejected:
evtpar = new.getValues()
self.data = Data(self, evtdata=createEvent(**evtpar))
self.dirty = True
self.data = Data(self, evtdata=createEvent(**evtpar))
self.dirty = True
def closeEvent(self, event):
if self.okToContinue():