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

workbench: fix on_search()

to not traceback and take the current repo

Changeset d95d07730e7d

Parent f1e08d6ac08c

by Adrian Buehlmann

Changes to one file · Browse files at d95d07730e7d Showing diff from parent f1e08d6ac08c Diff from another changeset...

 
606
607
608
609
610
611
 
 
 
 
612
613
614
 
606
607
608
 
 
 
609
610
611
612
613
614
615
@@ -606,9 +606,10 @@
    def on_search(self, *args):   from tortoisehg.hgqt.grep import SearchWidget - # todo: get root of current repo, pass to search widget - root = None - s = SearchWidget('', root, self) + w = self.repoTabsWidget.currentWidget() + if w is None: + return + s = SearchWidget('', w.repo.root, self)   s.setAllowedAreas(Qt.TopDockWidgetArea | Qt.BottomDockWidgetArea)   s.setObjectName("searchWidget%d" % len(self._searchWidgets))   self.addDockWidget(Qt.BottomDockWidgetArea, s)