by
Changes to 2 files · Browse files at 05e52d1df844 Showing diff from parent ba4a5595bd8e f22f5ce0a2f4 Diff from another changeset...
@@ -262,6 +262,7 @@ path_cell = gtk.CellRendererText()
stat_cell = gtk.CellRendererText()
+ self.selcb = None
if self.count_revs() < 2:
col0 = gtk.TreeViewColumn('', toggle_cell)
col0.add_attribute(toggle_cell, 'active', 0)
@@ -401,7 +402,8 @@ check_count = check_count + 1
self.counter.set_text(_('%d selected, %d total') %
(check_count, file_count))
- self.selcb.set_active(file_count and file_count == check_count)
+ if self.selcb:
+ self.selcb.set_active(file_count and file_count == check_count)
def prepare_display(self):
self._ready = True
|
Loading...