get data from the NewEvtDlg dialog for event creation
This commit is contained in:
parent
64158174e6
commit
23fa136dc5
@ -371,10 +371,10 @@ 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
|
||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
if self.okToContinue():
|
if self.okToContinue():
|
||||||
|
Loading…
Reference in New Issue
Block a user