-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add modal confirmation dialogue when exiting with unsaved changes #50
Comments
The tentative plan is to check for changes to the urdf as follows:
I would have liked liked to use qtpropertybrowser::removeProperty(*) to set a flag, but it's getting called way more often than I expected. Let me know if that sounds OK, @gavanderhoorn |
@AndyZelenak: the observer/observable approach was what I had in mind, so this sounds ok. Is We should probably also watch for changes in the treeviewer, to not miss changes when #26 is implemented. |
@gavanderhoorn OK, I need to check if the tree is reordered. Roger that. Unfortunately propertyChanged() is not called on deletion. How would you like this flag to be shared between the qt_property_browser and urdf_editor sides? I was thinking I would pass it as an argument to qt_property_browser, e.g. propertyChanged(bool & unsavedChanges). I guess the other option would be a "global" namespace or class variable. |
Would it perhaps make sense to not monitor the properties directly, but keep track of the state of the On the other hand: doing this on the Qt side would avoid introducing an additional dependency on ROS (parameter server). |
Btw. The |
Closed via #74. |
As per subject: there is no confirmation requested if the user exits the application while there are still unsaved changes.
To avoid losing work - by misclicking fi - the user should be presented with a Save changes to FILENAME before closing? or similar dialogue.
The text was updated successfully, but these errors were encountered: