RefactoringRope/HistoryDialog.py

changeset 320
91b171fdd85f
parent 302
2e853e2f2430
child 326
67bcde9c65b9
equal deleted inserted replaced
319:1d71264692ef 320:91b171fdd85f
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt5.QtCore import pyqtSlot, Qt, QItemSelectionModel 12 from PyQt5.QtCore import pyqtSlot, Qt, QItemSelectionModel
13 from PyQt5.QtGui import QBrush, QColor, QTextCursor 13 from PyQt5.QtGui import QBrush, QColor, QTextCursor
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QListWidgetItem, \ 14 from PyQt5.QtWidgets import (
15 QAbstractButton 15 QDialog, QDialogButtonBox, QListWidgetItem, QAbstractButton
16 )
16 17
17 from E5Gui.E5Application import e5App 18 from E5Gui.E5Application import e5App
18 from E5Gui import E5MessageBox 19 from E5Gui import E5MessageBox
19 20
20 from .Ui_HistoryDialog import Ui_HistoryDialog 21 from .Ui_HistoryDialog import Ui_HistoryDialog
292 self.redoChangesList.setCurrentItem( 293 self.redoChangesList.setCurrentItem(
293 self.redoChangesList.item(0), 294 self.redoChangesList.item(0),
294 QItemSelectionModel.Select) 295 QItemSelectionModel.Select)
295 296
296 self.__refreshButton.setEnabled(True) 297 self.__refreshButton.setEnabled(True)
297 if self.undoChangesList.count() > 0 or \ 298 if (
298 self.redoChangesList.count() > 0: 299 self.undoChangesList.count() > 0 or
300 self.redoChangesList.count() > 0
301 ):
299 self.__clearButton.setEnabled(True) 302 self.__clearButton.setEnabled(True)
300 303
301 elif subcommand == "ChangeDescription": 304 elif subcommand == "ChangeDescription":
302 for line in data["Description"].splitlines(True): 305 for line in data["Description"].splitlines(True):
303 try: 306 try:

eric ide

mercurial