242 @type QAbstractButton |
242 @type QAbstractButton |
243 """ |
243 """ |
244 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
244 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
245 self.__cancelled = True |
245 self.__cancelled = True |
246 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
246 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
|
247 if self.__diffDialog is not None: |
|
248 self.__diffDialog.close() |
|
249 self.__diffDialog = None |
247 self.accept() |
250 self.accept() |
248 elif button is self.__formatButton: |
251 elif button is self.__formatButton: |
249 self.__formatButtonClicked() |
252 self.__formatButtonClicked() |
250 |
253 |
251 @pyqtSlot() |
254 @pyqtSlot() |