Late import GTK UI's ConnectionManager so that the translations code can be properly setup.

This commit is contained in:
Pedro Algarvio 2011-06-05 22:48:17 +01:00
parent ddc0957e3e
commit 4420aae092
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,6 @@ from filtertreeview import FilterTreeView
from preferences import Preferences
from systemtray import SystemTray
from statusbar import StatusBar
from connectionmanager import ConnectionManager
from pluginmanager import PluginManager
from ipcinterface import IPCInterface
from deluge.ui.tracker_icons import TrackerIcons
@ -213,6 +212,8 @@ class GtkUI(object):
# Initalize the plugins
self.plugins = PluginManager()
# Late import because of setting up translations
from connectionmanager import ConnectionManager
# Show the connection manager
self.connectionmanager = ConnectionManager()