diff --git a/gui/wxpython/gmodeler/dialogs.py b/gui/wxpython/gmodeler/dialogs.py index d47d9791a8b..a7b230ddbc7 100644 --- a/gui/wxpython/gmodeler/dialogs.py +++ b/gui/wxpython/gmodeler/dialogs.py @@ -325,8 +325,8 @@ def ValidateCmd(self, cmd): def OnCommand(self, cmd): """Command in prompt confirmed""" - if self.ValidateCmd(cmd): - self._command = cmd + if self.ValidateCmd(cmd["cmd"]): + self._command = cmd["cmd"] self.EndModal(wx.ID_OK) def OnOk(self, event):