Fix #6352 (Viewing preferences gives error)

This commit is contained in:
Kovid Goyal 2010-07-30 19:00:22 -06:00
parent beef3c5b40
commit 9e7fbc20ff

View File

@ -373,8 +373,9 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, # {{{
d.exec_() d.exec_()
self.content_server = d.server self.content_server = d.server
self.content_server.state_callback = \ if self.content_server is not None:
Dispatcher(self.content_server_state_changed) self.content_server.state_callback = \
Dispatcher(self.content_server_state_changed)
self.content_server.state_callback(self.content_server.is_running) self.content_server.state_callback(self.content_server.is_running)
if d.result() == d.Accepted: if d.result() == d.Accepted: