Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

changeset 5463
d84b854d59c0
parent 5389
9b1c800daff3
child 5495
9584e91c9857
--- a/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Tue Jan 31 19:08:11 2017 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Tue Jan 31 19:49:58 2017 +0100
@@ -373,8 +373,6 @@
                 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True)
                 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
                 
-                self.inputGroup.setEnabled(True)
-                self.inputGroup.show()
                 self.refreshButton.setEnabled(False)
     
     def __finish(self):
@@ -484,6 +482,11 @@
         self.errorGroup.show()
         self.errors.insertPlainText(out)
         self.errors.ensureCursorVisible()
+        
+        if not self.__hgClient:
+            # show input in case the process asked for some input
+            self.inputGroup.setEnabled(True)
+            self.inputGroup.show()
     
     def on_passwordCheckBox_toggled(self, isOn):
         """

eric ide

mercurial