-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reflect changes when mapset/location is created from menu #916
Reflect changes when mapset/location is created from menu #916
Conversation
gui/wxpython/lmgr/frame.py
Outdated
| db_node, loc_node, mapset_node = self.datacatalog.tree.GetCurrentDbLocationMapsetNode() | ||
| self.datacatalog.tree.CreateMapset(db_node, loc_node) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should call create_mapset_interactively directly, not through datacatalog. As for the reloading of datacatalog, for now just call self.datacatalog.tree.ReloadTreeItems() and we will later change this using signals.
…vely called directly.
gui/wxpython/lmgr/frame.py
Outdated
| GError(parent=self, | ||
| message=_("No mapset provided. Operation canceled.")) | ||
| return | ||
| db_node, loc_node, mapset_node = self.datacatalog.tree.GetCurrentDbLocationMapsetNode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just get the current location and db from gisenv
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
|
#994 incorporated the changes here. |
There are several actions that need to be synced in GUI and datacatalog. This PR solves the case when the mapset/location is created from menu.