Fix Cancel action on Fix Path in State Files dialog
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
PROBLEM: Cancel of data path dialog continues to load possibly incorrect data paths.
SOLUTION: Add canceling of entire loading of state file after clicking on 'X' or 'Cancel' button in "Fix Paths in State Files" dialog.
patched files: pqApplicationCore.[h, cxx], pqFixPathsInStateFilesBehavior.cxx action: copy pqApplicationCore.* to ParaView-3.14.0/Qt/Core copy pqFixPathsInStateFilesBehavior.cxx to ParaView-3.14.0/Qt/ApplicationComponents
DESCRIPTION: When user loads state file with filenames specified in it, dialog pops up to allow user to update filenames
paths. In case user clicks on Cancel or 'X' button, patch allows stopping entire process of loading of state files, instead of
stopping only fixing pathnames in state file being loaded as it was previously done. Perhaps previous behavior was intended
feature, but canceling of entire loading process when user clicks on 'X' or 'Cancel' looks much more natural than continuing with
loading of state file.
CHANGES: To make this patch, following changes were made (ParaView source patch):
- Added QuitLoadingStateFile property and its mutator to pqApplicationCore class,
- Added logic of quiting loading of state file in case flag is set in pqApplicationCore::loadStateFile() routine,
- Added setting of pqApplicationCore::QuitLoadingStateFile flag in pqFixPathsInStateFilesBehavior class.