Skip to content

Commit

Permalink
wxGUI/history: fix the run of a special cmds only once
Browse files Browse the repository at this point in the history
After left double mouse click on the wxGUI history tab tree cmd node.

Special cmds are:

```
r"^d\..*|^r[3]?\.mapcalc$|^i.group$|^r.import$|^r.external$|^r.external.out$|"
r"^v.import$|^v.external$|^v.external.out$"
```
  • Loading branch information
tmszi committed Sep 16, 2024
1 parent 63a80f5 commit d8cd527
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gui/wxpython/history/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,12 @@ def Run(self, node=None):
selected_command = self.selected_command[0]
command = selected_command.data["name"]

lst = re.split(r"\s+", command)
if (
globalvar.ignoredCmdPattern
and re.compile(globalvar.ignoredCmdPattern).search(command)
and "--help" not in command
and "--ui" not in command
):
self.runIgnoredCmdPattern.emit(cmd=lst)
self.runIgnoredCmdPattern.emit(cmd=split(command))
return
if re.compile(r"^r[3]?\.mapcalc").search(command):
Expand Down

0 comments on commit d8cd527

Please sign in to comment.