261 @type QAbstractButton |
261 @type QAbstractButton |
262 """ |
262 """ |
263 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
263 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
264 self.__cancelled = True |
264 self.__cancelled = True |
265 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
265 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
|
266 if self.__diffDialog is not None: |
|
267 self.__diffDialog.close() |
|
268 self.__diffDialog = None |
266 self.accept() |
269 self.accept() |
267 elif button is self.__sortImportsButton: |
270 elif button is self.__sortImportsButton: |
268 self.__sortImportsButtonClicked() |
271 self.__sortImportsButtonClicked() |
269 |
272 |
270 @pyqtSlot() |
273 @pyqtSlot() |