116 """ |
116 """ |
117 if button == self.buttonBox.button( |
117 if button == self.buttonBox.button( |
118 QDialogButtonBox.StandardButton.Cancel |
118 QDialogButtonBox.StandardButton.Cancel |
119 ): |
119 ): |
120 self.reject() |
120 self.reject() |
121 elif button == self.buttonBox.button( |
121 elif ( |
122 QDialogButtonBox.StandardButton.Save |
122 button == self.buttonBox.button( |
|
123 QDialogButtonBox.StandardButton.Save) and |
|
124 self.__savePageScreen() |
123 ): |
125 ): |
124 if self.__savePageScreen(): |
126 self.accept() |
125 self.accept() |
|