Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

sync: make 'save url' and authentication dialogs sheets

Changeset fe72f1ef410b

Parent 8cf15674dc1b

by Steve Borho

Changes to one file · Browse files at fe72f1ef410b Showing diff from parent 8cf15674dc1b Diff from another changeset...

 
399
400
401
402
403
404
 
 
 
 
 
405
406
407
408
409
410
411
 
 
 
 
412
413
414
 
399
400
401
 
 
 
402
403
404
405
406
407
408
409
410
411
 
 
412
413
414
415
416
417
418
@@ -399,16 +399,20 @@
  else:   alias = 'new'   url = hglib.fromunicode(self.urlentry.text()) - dialog = SaveDialog(self.repo, alias, url, self) - if dialog.exec_() == QDialog.Accepted: - self.curalias = hglib.fromunicode(dialog.aliasentry.text()) + dlg = SaveDialog(self.repo, alias, url, self) + dlg.setWindowFlags(Qt.Sheet) + dlg.setWindowModality(Qt.WindowModal) + if dlg.exec_() == QDialog.Accepted: + self.curalias = hglib.fromunicode(dlg.aliasentry.text())     def authclicked(self):   host = hglib.fromunicode(self.hostentry.text())   user = self.curuser or ''   pw = self.curpw or '' - dialog = AuthDialog(self.repo, host, user, pw, self) - if dialog.exec_() == QDialog.Accepted: + dlg = AuthDialog(self.repo, host, user, pw, self) + dlg.setWindowFlags(Qt.Sheet) + dlg.setWindowModality(Qt.WindowModal) + if dlg.exec_() == QDialog.Accepted:   self.curuser, self.curpw = '', ''     def run(self, cmdline, details):