12 from PyQt6.QtCore import pyqtSlot, Qt, QProcess, QTimer |
12 from PyQt6.QtCore import pyqtSlot, Qt, QProcess, QTimer |
13 from PyQt6.QtWidgets import ( |
13 from PyQt6.QtWidgets import ( |
14 QWidget, QHeaderView, QTreeWidgetItem, QDialogButtonBox, QLineEdit |
14 QWidget, QHeaderView, QTreeWidgetItem, QDialogButtonBox, QLineEdit |
15 ) |
15 ) |
16 |
16 |
17 from E5Gui import E5MessageBox |
17 from E5Gui import EricMessageBox |
18 |
18 |
19 from .Ui_GitRemoteRepositoriesDialog import Ui_GitRemoteRepositoriesDialog |
19 from .Ui_GitRemoteRepositoriesDialog import Ui_GitRemoteRepositoriesDialog |
20 |
20 |
21 import Preferences |
21 import Preferences |
22 from Globals import strToQByteArray |
22 from Globals import strToQByteArray |
143 self.process.start('git', args) |
143 self.process.start('git', args) |
144 procStarted = self.process.waitForStarted(5000) |
144 procStarted = self.process.waitForStarted(5000) |
145 if not procStarted: |
145 if not procStarted: |
146 self.inputGroup.setEnabled(False) |
146 self.inputGroup.setEnabled(False) |
147 self.inputGroup.hide() |
147 self.inputGroup.hide() |
148 E5MessageBox.critical( |
148 EricMessageBox.critical( |
149 self, |
149 self, |
150 self.tr('Process Generation Error'), |
150 self.tr('Process Generation Error'), |
151 self.tr( |
151 self.tr( |
152 'The process {0} could not be started. ' |
152 'The process {0} could not be started. ' |
153 'Ensure, that it is in the search path.' |
153 'Ensure, that it is in the search path.' |