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

settings: don't switch window title by current tab

Since the scope of settings, "global" or "repo", got visible, we don't
need to show it on title bar.

Changeset 8f4e53afddda

Parent 89b3d8350c4c

by Yuya Nishihara

Changes to one file · Browse files at 8f4e53afddda Showing diff from parent 89b3d8350c4c Diff from another changeset...

 
413
414
415
 
416
417
418
 
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
 
413
414
415
416
417
418
419
 
471
472
473
 
 
 
 
 
 
 
 
 
 
 
 
 
474
475
476
@@ -413,6 +413,7 @@
  'Dialog for editing Mercurial.ini or hgrc'   def __init__(self, configrepo=False, focus=None, parent=None):   QDialog.__init__(self, parent) + self.setWindowTitle(_('TortoiseHg Settings'))     self.ui = ui.ui()   try: @@ -470,19 +471,6 @@
  self.bb = bb     self.conftabs.setCurrentIndex(configrepo and CONF_REPO or CONF_GLOBAL) - self.conftabs.currentChanged.connect(self.refreshtitle) - self.refreshtitle() - - def refreshtitle(self, *args): - if self.conftabs.currentIndex() == CONF_REPO: - repo = hg.repository(ui.ui(), self.root) - name = hglib.get_reponame(repo) - self.setWindowTitle(_('TortoiseHg Configure Repository - ') + \ - hglib.tounicode(name)) - #set_tortoise_icon(self, 'settings_repo.ico') - else: - self.setWindowTitle(_('TortoiseHg Configure User-Global Settings')) - #set_tortoise_icon(self, 'settings_user.ico')     def isDirty(self):   return util.any(self.conftabs.widget(i).isDirty()