From c7b272561ee3c9c96cf96c776bb2f418bc3aed8f Mon Sep 17 00:00:00 2001 From: bendikro Date: Fri, 6 May 2016 21:23:35 +0200 Subject: [PATCH] [#2827] [GTKUI] Fix issue with loading GTKUI columns state commit 1a2ff9b089cd2 introduced a bug when loading GTKUI column states due to changing ListViewColumnState class type. Fixed by reverting ListViewColumnState to old style class --- deluge/ui/gtkui/listview.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/listview.py b/deluge/ui/gtkui/listview.py index 25796a4e2..99d4d79c0 100644 --- a/deluge/ui/gtkui/listview.py +++ b/deluge/ui/gtkui/listview.py @@ -23,8 +23,12 @@ signal_new('button-press-event', gtk.TreeViewColumn, SIGNAL_RUN_LAST, TYPE_NONE, log = logging.getLogger(__name__) -class ListViewColumnState(object): - """Used for saving/loading column state""" +class ListViewColumnState: # pylint: disable=old-style-class + """ + Class used for saving/loading column state. + + Note: This must be old style class to avoid breaking existing user state file. + """ def __init__(self, name, position, width, visible, sort, sort_order): self.name = name self.position = position