|
|
|
@ -259,7 +259,8 @@ class MainWgt(QtGui.QMainWindow):
|
|
|
|
|
# Reconnet to current host
|
|
|
|
|
self.cur_size = self.size()
|
|
|
|
|
self.ConnectWidget = FrameConnection (self, self.ClientObj)
|
|
|
|
|
self.ConnectWidget.connect_to_host(server_host_name)
|
|
|
|
|
self.ConnectWidget.connect_to_host(server_host_name, \
|
|
|
|
|
self.ClientObj.port)
|
|
|
|
|
|
|
|
|
|
if not self.main_frame.isEnabled():
|
|
|
|
|
self.left_frame.setEnabled(True)
|
|
|
|
@ -366,7 +367,6 @@ class MainWgt(QtGui.QMainWindow):
|
|
|
|
|
self.topmenu.Back.setEnabled(True)
|
|
|
|
|
if hasattr (self.MainFrameWgt, 'button_enabled'):
|
|
|
|
|
self.MainFrameWgt.button_enabled()
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
if hasattr (self, 'con_lost_lbl'):
|
|
|
|
|
self.con_lost_lbl.hide()
|
|
|
|
@ -385,7 +385,6 @@ class MainWgt(QtGui.QMainWindow):
|
|
|
|
|
self.con_lost_lbl.resize_widget()
|
|
|
|
|
event.accept()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def show_close_messagebox(self):
|
|
|
|
|
list_pid = client_list_pid(self.ClientObj.client)
|
|
|
|
|
|
|
|
|
|