7361: Keep at least one column on views

This commit is contained in:
Jérôme Rapinat 2014-01-21 11:15:15 +01:00
parent aa9deb6a3d
commit c4186b916a

View File

@ -183,7 +183,7 @@ class ColumnOrder(gtk.VBox):
self.config.set('columns.size', newsize)
self.config.set('columns.visible', newvis)
self.config.save()
if self.on_apply:
if len(newvis) > 0 and self.on_apply:
self.on_apply()
def toggled(cell, path, model):