diff --git a/gui/wxpython/core/gconsole.py b/gui/wxpython/core/gconsole.py index 81a4d7c9d63..f40bcfc1ffd 100644 --- a/gui/wxpython/core/gconsole.py +++ b/gui/wxpython/core/gconsole.py @@ -865,7 +865,7 @@ def OnCmdDone(self, event): location=gisenv["LOCATION_NAME"], mapset=mask_mapset, action=action, - map=name, + map=mask_name, element="raster", ) diff --git a/gui/wxpython/lmgr/statusbar.py b/gui/wxpython/lmgr/statusbar.py index 92f79ba7e86..c30fde67d5c 100644 --- a/gui/wxpython/lmgr/statusbar.py +++ b/gui/wxpython/lmgr/statusbar.py @@ -96,6 +96,8 @@ def dbChanged(self, map=None, newname=None): mask_layer = gs.parse_command("r.mask.status", format="json")["name"].split( "@", maxsplit=1 )[0] + # This assumes mask is always in the current mapset (or the event is triggered + # only for the current mapset). if mask_layer in {map, newname}: self.Refresh() self.giface.updateMap.emit()