DOI-USGS / fort-pymdwizard

The MetadataWizard is a useful tool designed to facilitate FGDC metadata creation for spatial and non-spatial data sets. It is a cross-platform desktop application built using an open-source Python architecture.
https://usgs.github.io/fort-pymdwizard/
Other
62 stars 21 forks source link

On File > Exit, the 'Save Changes' dialog displays after no changes AND again after clicking 'No' button in the dialog #154

Open esellers-usgs opened 2 years ago

esellers-usgs commented 2 years ago

Describe the bug When selecting File > Exit, the 'Save Changes' dialog displays twice - even though the user made no changes to the metadata record AND including after the user clicks on the 'No' button the first time it displays. The user has to click on the 'No' button twice in two separate display instances of the 'Save Changes' dialog before the Wizard app will close.

To Reproduce Steps to reproduce the behavior:

  1. Open Metadata Wizard desktop client app v2.0.7 on a Windows machine
  2. Using the File > Open option, browser to and open an XML metadata file
  3. Either do nothing once the file has opened or you can switch between tabs/views - without clicking in or making any changes in the fields/contents
  4. Choose File > Exit
  5. The 'Save Changes' dialog displays (the first time)
  6. Click 'No' button in the 'Save Changes' dialog
  7. The 'Save Changes' dialog display (a second time)
  8. Click 'No' button in the 'Save Changes' dialog
  9. The app closes

Expected behavior I would not expect the 'Save Changes' dialog to display at all if I have not made any changes to the open metadata file. But if it must display, it should only display once and the app should close as expected after the user selects the 'No' button in the dialog (and no changes are made/saved to the metadata record that was open).

Screenshots image

Desktop (please complete the following information):

tnorkin commented 2 years ago

@esellers-usgs, I ran through the steps above and can confirm the behavior