diff easyhg2.py @ 435:74047159a044

Clear password dialog when user name changes
author Chris Cannam
date Tue, 28 Jun 2011 13:07:39 +0100
parents f8aa7ac57993
children b7a740eef696
line wrap: on
line diff
--- a/easyhg2.py	Tue Jun 28 13:07:28 2011 +0100
+++ b/easyhg2.py	Tue Jun 28 13:07:39 2011 +0100
@@ -173,6 +173,8 @@
     layout.addWidget(QtGui.QLabel(_('Password:')), 2, 0)
     layout.addWidget(passfield, 2, 1)
 
+    userfield.connect(userfield, Qt.SIGNAL("textChanged(QString)"), passfield, Qt.SLOT("clear()"))
+
     remember = None
     pcfg = None