Changeset 05f7313b5f5c…
Parent a961a823bb4f…
by
Changes to one file · Browse files at 05f7313b5f5c Showing diff from parent a961a823bb4f Diff from another changeset...
@@ -276,7 +276,7 @@ stat_cell = gtk.CellRendererText()
self.selcb = None
- if len(self.repo.changectx(None).parents()) != 2:
+ if len(self.repo['.'].parents()) != 2:
# show file selection checkboxes only when applicable
col0 = gtk.TreeViewColumn('', toggle_cell)
col0.add_attribute(toggle_cell, 'active', FM_CHECKED)
@@ -292,11 +292,12 @@ col1.set_resizable(False)
self.filetree.append_column(col1)
- col = gtk.TreeViewColumn(_('ms'), stat_cell)
- col.add_attribute(stat_cell, 'text', FM_MERGE_STATUS)
- col.set_sort_column_id(4)
- col.set_resizable(False)
- self.filetree.append_column(col)
+ if len(self.repo['.'].parents()) == 2:
+ col = gtk.TreeViewColumn(_('ms'), stat_cell)
+ col.add_attribute(stat_cell, 'text', FM_MERGE_STATUS)
+ col.set_sort_column_id(4)
+ col.set_resizable(False)
+ self.filetree.append_column(col)
col2 = gtk.TreeViewColumn(_('path'), path_cell)
col2.add_attribute(path_cell, 'text', FM_PATH_UTF8)
|
Loading...