EcoGIS / CAPS-Scenario-Builder

The CAPS Scenario Builder will allow government officials, conservation groups and others to submit "scenarios" for proposed changes to land cover and infrastructure so that these changes can be assessed for their impact on ecological integrity.
http://www.umass.edu/landeco/research/caps/caps.html
3 stars 0 forks source link

Unsaved changes in the Manage Projects dialog. #40

Closed bobenglish closed 11 years ago

bobenglish commented 11 years ago

A user said, "When I then close the project window I have gotten a message that taking the action will cause data you just entered to be lost. Yet, when I close the project window and reopen it, it appears that the project has indeed been saved. "

bobenglish commented 11 years ago

The “Manage Projects” dialog checks for any unsaved changes to the current project when you try to open a saved project or close/cancel the dialog. I checked this code and it appears to work as designed.

I think the issue above was primarily caused by poor text in the warning message box. Previously the text read, "You are taking an action that will cause the data you just entered to be lost. If you want to save the data, click 'Cancel' and save the project. To discard the data and continue, click 'OK.'"

I changed this text to, "You have made changes to your project since you last clicked 'Save.' If you want to save these changes click 'Cancel' and save the project. To discard the changes and continue, click 'OK.'"

Ideally this warning should be changed to a save/discard dialog and the changes should be automatically saved if the user chooses "save." I spent a couple of hours trying to make that change, but it is very difficult to do and might introduce unanticipated bugs. I've put it on a to-do list for a future version.