12 from PyQt6.QtCore import ( |
12 from PyQt6.QtCore import ( |
13 QProcess, QTimer, pyqtSlot, Qt, QCoreApplication, QProcessEnvironment |
13 QProcess, QTimer, pyqtSlot, Qt, QCoreApplication, QProcessEnvironment |
14 ) |
14 ) |
15 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QLineEdit |
15 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QLineEdit |
16 |
16 |
17 from E5Gui import E5MessageBox |
17 from E5Gui import EricMessageBox |
18 |
18 |
19 from .Ui_GitDialog import Ui_GitDialog |
19 from .Ui_GitDialog import Ui_GitDialog |
20 |
20 |
21 import Preferences |
21 import Preferences |
22 from Globals import strToQByteArray |
22 from Globals import strToQByteArray |
177 self.process.start('git', args) |
177 self.process.start('git', args) |
178 procStarted = self.process.waitForStarted(5000) |
178 procStarted = self.process.waitForStarted(5000) |
179 if not procStarted: |
179 if not procStarted: |
180 self.buttonBox.setFocus() |
180 self.buttonBox.setFocus() |
181 self.inputGroup.setEnabled(False) |
181 self.inputGroup.setEnabled(False) |
182 E5MessageBox.critical( |
182 EricMessageBox.critical( |
183 self, |
183 self, |
184 self.tr('Process Generation Error'), |
184 self.tr('Process Generation Error'), |
185 self.tr( |
185 self.tr( |
186 'The process {0} could not be started. ' |
186 'The process {0} could not be started. ' |
187 'Ensure, that it is in the search path.' |
187 'Ensure, that it is in the search path.' |