From 2c66f21cc1a26695ad16e14fd18c590ff0e03054 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 2 Jul 2014 18:20:44 +0100 Subject: [PATCH] [#2461] [GTKUI] Fix createtorrentdialog cell_data_size error --- deluge/ui/gtkui/createtorrentdialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/createtorrentdialog.py b/deluge/ui/gtkui/createtorrentdialog.py index 597e3a1db..c31559fef 100644 --- a/deluge/ui/gtkui/createtorrentdialog.py +++ b/deluge/ui/gtkui/createtorrentdialog.py @@ -44,7 +44,7 @@ import logging from twisted.internet.threads import deferToThread from deluge.ui.client import client -import listview +from deluge.ui.gtkui.torrentview_data_funcs import cell_data_size import deluge.component as component import deluge.common from deluge.configmanager import ConfigManager @@ -105,7 +105,7 @@ class CreateTorrentDialog: column = gtk.TreeViewColumn(_("Size")) render = gtk.CellRendererText() column.pack_start(render) - column.set_cell_data_func(render, listview.cell_data_size, 2) + column.set_cell_data_func(render, cell_data_size, 2) self.builder.get_object("treeview_files").append_column(column) self.builder.get_object("treeview_files").set_model(self.files_treestore)