Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable filelistview: Avoid showing regular file context menu for removed subrepos

Thanks to Steve Borho for the pointer on how to fix this.

Changeset 4b78b9a94dd0

Parent 42ddfe9162fa

by Angel Ezquerra

Changes to one file · Browse files at 4b78b9a94dd0 Showing diff from parent 42ddfe9162fa Diff from another changeset...

 
258
259
260
261
 
 
262
263
264
 
258
259
260
 
261
262
263
264
265
@@ -258,7 +258,8 @@
  self.addAction(act)     def contextMenuEvent(self, event): - itemissubrepo = self.currentFile() in self.model()._ctx.substate.keys() + itemissubrepo = (self.model().dataFromIndex(self.currentIndex())['status'] == 'S') +   # Subrepos and regular items have different context menus   if itemissubrepo:   contextmenu = self.subrepocontextmenu