Skip to content

Commit

Permalink
Graphical Modeler: fix command parsing in "add tool" dialog (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Jun 6, 2023
1 parent 5880d36 commit a5f8548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/gmodeler/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a5f8548

Please sign in to comment.