diff -r 34abdb88158e -r de33dc93a3ac RefactoringRope/HistoryDialog.py --- a/RefactoringRope/HistoryDialog.py Sat Feb 23 15:28:57 2013 +0100 +++ b/RefactoringRope/HistoryDialog.py Sun Apr 14 15:13:58 2013 +0200 @@ -8,10 +8,10 @@ """ from PyQt4.QtCore import Qt, pyqtSlot -from PyQt4.QtGui import QDialogButtonBox, QListWidgetItem, QMessageBox, \ - QApplication +from PyQt4.QtGui import QDialogButtonBox, QListWidgetItem, QApplication from E5Gui.E5Application import e5App +from E5Gui import E5MessageBox from PreviewDialogBase import PreviewDialogBase @@ -94,26 +94,18 @@ change = self.__changes[id] if self.__isUndo: - res = QMessageBox.question(None, + res = E5MessageBox.yesNo(None, self.trUtf8("Undo refactorings"), self.trUtf8("""Shall all refactorings up to <b>{0}</b>""" """ be undone?""")\ - .format(Utilities.html_encode(str(change))), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) + .format(Utilities.html_encode(str(change)))) else: - res = QMessageBox.question(None, + res = E5MessageBox.yesNo(None, self.trUtf8("Redo refactorings"), self.trUtf8("""Shall all refactorings up to <b>{0}</b>""" """ be redone?""")\ - .format(Utilities.html_encode(str(change))), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) - if res == QMessageBox.Yes: + .format(Utilities.html_encode(str(change)))) + if res: if not self.__refactoring.confirmAllBuffersSaved(): return