8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot, QCoreApplication |
10 from PyQt6.QtCore import pyqtSlot, QCoreApplication |
11 from PyQt6.QtWidgets import QDialog |
11 from PyQt6.QtWidgets import QDialog |
12 |
12 |
|
13 from EricWidgets.EricApplication import ericApp |
13 from EricWidgets import EricMessageBox |
14 from EricWidgets import EricMessageBox |
14 |
15 |
15 from Ui_HgHisteditCommitEditor import Ui_HgHisteditCommitEditor |
16 from Ui_HgHisteditCommitEditor import Ui_HgHisteditCommitEditor |
16 |
17 |
17 import Preferences |
18 import Preferences |
31 @param parent reference to the parent widget |
32 @param parent reference to the parent widget |
32 @type QWidget |
33 @type QWidget |
33 """ |
34 """ |
34 super().__init__(parent) |
35 super().__init__(parent) |
35 self.setupUi(self) |
36 self.setupUi(self) |
|
37 |
|
38 project = ericApp().getObject("Project") |
|
39 pwl, pel = project.getProjectDictionaries() |
|
40 language = project.getProjectSpellLanguage() |
|
41 self.messageEdit.setLanguageWithPWL( |
|
42 language, pwl or None, pel or None) |
36 |
43 |
37 self.__fileName = fileName |
44 self.__fileName = fileName |
38 self.__readFile() |
45 self.__readFile() |
39 |
46 |
40 self.recentCommitMessages = Preferences.toList( |
47 self.recentCommitMessages = Preferences.toList( |