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