From 68e8759a654f520ee4806e213c5418d7e3141469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Wed, 22 Jan 2014 14:42:04 +0100 Subject: [PATCH] 7361: Do not save column order if there is not at least one column --- src/gui/columnorder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/columnorder.py b/src/gui/columnorder.py index 81a725ec5..bd34b2d6c 100644 --- a/src/gui/columnorder.py +++ b/src/gui/columnorder.py @@ -179,11 +179,11 @@ class ColumnOrder(gtk.VBox): newvis.append(index) neworder.append(index) newsize.append(size) - self.config.set('columns.rank', neworder) - self.config.set('columns.size', newsize) - self.config.set('columns.visible', newvis) - self.config.save() if len(newvis) > 0 and self.on_apply: + self.config.set('columns.rank', neworder) + self.config.set('columns.size', newsize) + self.config.set('columns.visible', newvis) + self.config.save() self.on_apply() def toggled(cell, path, model):