Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

fogcreek quickop: improve detection of kbfiles extension

Changeset bd9214e000ef

Parent 7558ebba2139

by David Golub

Changes to one file · Browse files at bd9214e000ef Showing diff from parent 7558ebba2139 Diff from another changeset...

 
13
14
15
16
17
18
19
 
98
99
100
101
 
102
103
104
 
13
14
15
 
16
17
18
 
97
98
99
 
100
101
102
103
@@ -13,7 +13,6 @@
 from tortoisehg.util import hglib, shlib  from tortoisehg.hgqt.i18n import _  from tortoisehg.hgqt import qtlib, status, cmdui -from tortoisehg.hgqt import settings    from PyQt4.QtCore import *  from PyQt4.QtGui import * @@ -98,7 +97,7 @@
  layout.addWidget(bb)   self.bb = bb   - if self.command == 'add' and settings.hasExtension('kbfiles'): + if self.command == 'add' and 'kbfiles' in self.repo.extensions():   self.addBfilesButton = QPushButton(_("Add &Bfiles"))   self.addBfilesButton.clicked.connect(self.addBfiles)   bb.addButton(self.addBfilesButton, BB.ActionRole)