eric7/Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py

branch
eric7
changeset 8629
1b58dc890b87
parent 8624
5192a2592324
child 8881
54e42bc2437a
equal deleted inserted replaced
8628:dcdf0074ad39 8629:1b58dc890b87
7 Module implementing a dialog to enter the commit message. 7 Module implementing a dialog to enter the commit message.
8 """ 8 """
9 9
10 from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt, QDateTime 10 from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt, QDateTime
11 from PyQt6.QtWidgets import QWidget, QDialogButtonBox 11 from PyQt6.QtWidgets import QWidget, QDialogButtonBox
12
13 from EricWidgets.EricApplication import ericApp
12 14
13 from .Ui_HgCommitDialog import Ui_HgCommitDialog 15 from .Ui_HgCommitDialog import Ui_HgCommitDialog
14 16
15 17
16 class HgCommitDialog(QWidget, Ui_HgCommitDialog): 18 class HgCommitDialog(QWidget, Ui_HgCommitDialog):
36 super().__init__(parent, Qt.WindowType.Window) 38 super().__init__(parent, Qt.WindowType.Window)
37 self.setupUi(self) 39 self.setupUi(self)
38 40
39 self.__vcs = vcs 41 self.__vcs = vcs
40 42
43 project = ericApp().getObject("Project")
44 pwl, pel = project.getProjectDictionaries()
45 language = project.getProjectSpellLanguage()
46 self.logEdit.setLanguageWithPWL(language, pwl or None, pel or None)
41 self.logEdit.setPlainText(msg) 47 self.logEdit.setPlainText(msg)
42 48
43 if mq or merge: 49 if mq or merge:
44 self.amendCheckBox.setVisible(False) 50 self.amendCheckBox.setVisible(False)
45 self.subrepoCheckBox.setVisible(False) 51 self.subrepoCheckBox.setVisible(False)

eric ide

mercurial