comparison easyhg.py @ 460:9f738c3ae9ba

Do the foregoing only if the user had explicitly asked for the remember option
author Chris Cannam
date Thu, 30 Jun 2011 00:05:24 +0100
parents ee06f9275c99
children 33a1c7c9d9d9
comparison
equal deleted inserted replaced
459:ee06f9275c99 460:9f738c3ae9ba
230 def __init__(self, ui, url, user, passwd): 230 def __init__(self, ui, url, user, passwd):
231 self.auth_store = EasyHgAuthStore(ui, url, user, passwd) 231 self.auth_store = EasyHgAuthStore(ui, url, user, passwd)
232 232
233 def ask(self, force_dialog): 233 def ask(self, force_dialog):
234 234
235 if self.auth_store.user and self.auth_store.passwd: 235 if self.auth_store.user and self.auth_store.passwd and self.auth_store.remember:
236 if not force_dialog: 236 if not force_dialog:
237 return (self.auth_store.user, self.auth_store.passwd) 237 return (self.auth_store.user, self.auth_store.passwd)
238 238
239 dialog = QtGui.QDialog() 239 dialog = QtGui.QDialog()
240 layout = QtGui.QGridLayout() 240 layout = QtGui.QGridLayout()