93 |
93 |
94 self.process.start('svn', args) |
94 self.process.start('svn', args) |
95 procStarted = self.process.waitForStarted() |
95 procStarted = self.process.waitForStarted() |
96 if not procStarted: |
96 if not procStarted: |
97 self.inputGroup.setEnabled(False) |
97 self.inputGroup.setEnabled(False) |
|
98 self.inputGroup.hide() |
98 E5MessageBox.critical(self, |
99 E5MessageBox.critical(self, |
99 self.trUtf8('Process Generation Error'), |
100 self.trUtf8('Process Generation Error'), |
100 self.trUtf8( |
101 self.trUtf8( |
101 'The process {0} could not be started. ' |
102 'The process {0} could not be started. ' |
102 'Ensure, that it is in the search path.' |
103 'Ensure, that it is in the search path.' |
103 ).format('svn')) |
104 ).format('svn')) |
104 else: |
105 else: |
105 self.inputGroup.setEnabled(True) |
106 self.inputGroup.setEnabled(True) |
|
107 self.inputGroup.show() |
106 |
108 |
107 def __finish(self): |
109 def __finish(self): |
108 """ |
110 """ |
109 Private slot called when the process finished or the user pressed the button. |
111 Private slot called when the process finished or the user pressed the button. |
110 """ |
112 """ |
115 self.process.waitForFinished(3000) |
117 self.process.waitForFinished(3000) |
116 |
118 |
117 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) |
119 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) |
118 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) |
120 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) |
119 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
121 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
|
122 self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason) |
120 |
123 |
121 self.inputGroup.setEnabled(False) |
124 self.inputGroup.setEnabled(False) |
|
125 self.inputGroup.hide() |
122 |
126 |
123 self.process = None |
127 self.process = None |
124 |
128 |
125 self.__resizeColumns() |
129 self.__resizeColumns() |
126 |
130 |