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,7 +371,7 @@ class MainWindow(QMainWindow):
def createNewEvent(self): def createNewEvent(self):
if self.okToContinue(): if self.okToContinue():
new = NewEventDlg() new = NewEventDlg()
if new.exec_(): if new.exec_() != QDialog.Rejected:
evtpar = new.getValues() evtpar = new.getValues()
self.data = Data(self, evtdata=createEvent(**evtpar)) self.data = Data(self, evtdata=createEvent(**evtpar))
self.dirty = True self.dirty = True