Skip to content

Commit b375e56

Browse files
committed
group collision handled, model saving default is sbml,layout coordinates are updated with scenepos for further saving, when object is moved from one group to another message box is setout for confirmation
1 parent fec1496 commit b375e56

File tree

3 files changed

+160
-127
lines changed

3 files changed

+160
-127
lines changed

mgui.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ def __init__(self, *args):
237237
else:
238238
filePath = filepath+'/'+fileName
239239
ret = loadFile(str(filePath), '%s' % (modelRoot), solver, merge=False)
240-
self.objectEditSlot('/',False)
240+
#self.objectEditSlot('/',False)
241+
self.objectEditSlot(ret['model'].path,False)
241242
pluginLookup = '%s/%s' % (ret['modeltype'], ret['subtype'])
242243
try:
243244
pluginName = subtype_plugin_map['%s/%s' % (ret['modeltype'], ret['subtype'])]
@@ -568,7 +569,6 @@ def setPlugin(self, name, root='/'):
568569
if name == 'kkit':
569570
self.objectEditDockWidget.objectNameChanged.connect(self.plugin.getEditorView().getCentralWidget().updateItemSlot)
570571
self.objectEditDockWidget.colorChanged.connect(self.plugin.getEditorView().getCentralWidget().updateColorSlot)
571-
572572
self.setCurrentView('editor')
573573
freeCursor()
574574
return self.plugin
@@ -643,7 +643,8 @@ def setCurrentView(self, view):
643643
self.plugin.setCurrentView(view)
644644
if view =='run':
645645
#Harsha: This will clear out object editor's objectpath and make it invisible
646-
self.objectEditSlot('/',False)
646+
#self.objectEditSlot('/',False)
647+
self.objectEditDockWidget.setVisible(False)
647648

648649
targetView = None
649650
newSubWindow = True

0 commit comments

Comments
 (0)