HgDialog: fixed an issue handling the returnPressed signal of the input widget.

Sat, 03 Oct 2020 10:53:38 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 03 Oct 2020 10:53:38 +0200
changeset 7735
c54ee930ecd8
parent 7734
983d90b76cff
child 7736
751c47317591

HgDialog: fixed an issue handling the returnPressed signal of the input widget.

eric6/Plugins/VcsPlugins/vcsMercurial/HgDialog.py file | annotate | diff | comparison | revisions
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Sat Oct 03 10:41:41 2020 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Sat Oct 03 10:53:38 2020 +0200
@@ -205,6 +205,7 @@
         from PyQt5.QtCore import QEventLoop
         loop = QEventLoop(self)
         self.sendButton.clicked[bool].connect(loop.quit)
+        self.input.returnPressed.connect(loop.quit)
         loop.exec_()
         message = self.input.text() + "\n"
         isPassword = self.passwordCheckBox.isChecked()

eric ide

mercurial