Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

wctxactions: fix menu generation for unknown files

Changeset e45157e06d7b

Parent 35bc11fb59ab

by Steve Borho

Changes to one file · Browse files at e45157e06d7b Showing diff from parent 35bc11fb59ab Diff from another changeset...

 
82
83
84
85
86
87
 
 
 
 
88
89
90
 
82
83
84
 
 
 
85
86
87
88
89
90
91
@@ -82,9 +82,10 @@
  menu.clear()   addedActions = False   for action in self.allactions: - if action is None and addedActions: - menu.addSeparator() - addedActions = False + if action is None: + if addedActions: + menu.addSeparator() + addedActions = False   elif action._filetypes & alltypes:   menu.addAction(action)   addedActions = True