From 5c154c32312983e6d8bddc2667cbeb12c44695f0 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 10 Nov 2007 09:54:09 +0000 Subject: [PATCH] Fix removing columns from ListView. --- deluge/ui/gtkui/glade/connection_manager.glade | 3 ++- deluge/ui/gtkui/listview.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/glade/connection_manager.glade b/deluge/ui/gtkui/glade/connection_manager.glade index 53d23ac9c..9fd34a8d6 100644 --- a/deluge/ui/gtkui/glade/connection_manager.glade +++ b/deluge/ui/gtkui/glade/connection_manager.glade @@ -1,6 +1,6 @@ - + True @@ -11,6 +11,7 @@ GTK_WIN_POS_CENTER_ON_PARENT 350 300 + True GDK_WINDOW_TYPE_HINT_DIALOG False diff --git a/deluge/ui/gtkui/listview.py b/deluge/ui/gtkui/listview.py index 1f80953cc..369d144a1 100644 --- a/deluge/ui/gtkui/listview.py +++ b/deluge/ui/gtkui/listview.py @@ -200,7 +200,7 @@ class ListView: def copy_row(model, path, row, user_data): new_list, columns = user_data new_row = new_list.append() - for column in range(model.get_n_columns()): + for column in range(len(columns)): # Get the current value of the column for this row value = model.get_value(row, column) # Set the value of this row and column in the new liststore