29 from .HgDiffHighlighter import HgDiffHighlighter |
29 from .HgDiffHighlighter import HgDiffHighlighter |
30 from .HgDiffGenerator import HgDiffGenerator |
30 from .HgDiffGenerator import HgDiffGenerator |
31 |
31 |
32 import Preferences |
32 import Preferences |
33 import UI.PixmapCache |
33 import UI.PixmapCache |
34 from Globals import qVersionTuple |
34 from Globals import qVersionTuple, strToQByteArray |
35 |
35 |
36 |
36 |
37 class HgStatusDialog(QWidget, Ui_HgStatusDialog): |
37 class HgStatusDialog(QWidget, Ui_HgStatusDialog): |
38 """ |
38 """ |
39 Class implementing a dialog to show the output of the hg status command |
39 Class implementing a dialog to show the output of the hg status command |
531 self.errors.ensureCursorVisible() |
531 self.errors.ensureCursorVisible() |
532 else: |
532 else: |
533 self.errors.insertPlainText(inputTxt) |
533 self.errors.insertPlainText(inputTxt) |
534 self.errors.ensureCursorVisible() |
534 self.errors.ensureCursorVisible() |
535 |
535 |
536 self.process.write(inputTxt) |
536 self.process.write(strToQByteArray(inputTxt)) |
537 |
537 |
538 self.passwordCheckBox.setChecked(False) |
538 self.passwordCheckBox.setChecked(False) |
539 self.input.clear() |
539 self.input.clear() |
540 |
540 |
541 def on_input_returnPressed(self): |
541 def on_input_returnPressed(self): |