|
|
|
@ -122,10 +122,13 @@ class ProjectManage(object):
|
|
|
|
|
# 切换工程
|
|
|
|
|
currentDB = Globals.getValue('currentProDB')
|
|
|
|
|
currentProtocolManage = Globals.getValue('protocolManage')
|
|
|
|
|
currentHistoryDB = Globals.getValue('historyDBManage')
|
|
|
|
|
if currentDB:
|
|
|
|
|
currentDB.close()
|
|
|
|
|
if Globals.getValue('protocolManage'):
|
|
|
|
|
if currentProtocolManage:
|
|
|
|
|
currentProtocolManage.shutdown()
|
|
|
|
|
if currentHistoryDB:
|
|
|
|
|
currentHistoryDB.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Client.initDB()
|
|
|
|
|