|
|
|
@ -364,6 +364,15 @@ class MainWgt(QtGui.QMainWindow):
|
|
|
|
|
self.con_lost_lbl.hide()
|
|
|
|
|
self.con_lost_lbl.close()
|
|
|
|
|
self.con_lost_lbl = ConnectLostLabel(_('Connection lost!'), self)
|
|
|
|
|
host_name = self.ClientObj.client.server_host_name
|
|
|
|
|
port = self.ClientObj.port
|
|
|
|
|
if host_name in ('127.0.0.1', 'localhost'):
|
|
|
|
|
try:
|
|
|
|
|
from calculate.lib.utils.dbus_tools import run_dbus_core
|
|
|
|
|
run_dbus_core(host_name, port)
|
|
|
|
|
except ImportError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
self.topmenu.Processes.setDisabled(True)
|
|
|
|
|
self.topmenu.Session.setDisabled(True)
|
|
|
|
|
self.topmenu.Back.setDisabled(True)
|
|
|
|
|