Skip to content

Commit

Permalink
wxGUI/history: fix the run of a special cmds only once (#4322)
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 20, 2024
1 parent 6806e69 commit 12f8aaf
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 @@ -447,14 +447,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 12f8aaf

Please sign in to comment.