Skip to content
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

State-preserving file dialog and saveAs behaviour #150

Merged
merged 4 commits into from
Sep 9, 2021

Conversation

mnamici
Copy link
Collaborator

@mnamici mnamici commented Sep 7, 2021

This PR addresses the following issues:

This class uses QSettings save/restore its state and geometry,
similarly to what is done for the main application window.
Currently the state and geometry is always saved when the dialog
is not spontaneusly hidden, even if the dialog is cancelled.
The new FileDialog allows saving/restoring its current
state and geometry to/from settings.

Closes obdasystems#145
Previous to this as a result of performing the saveAs action the active
project would refer to the initial project file, which means that
any subsequent save would still modify the original project file.
This behaviour is different from what is typically found in the
majority of other editing software, and can be confusing for the user.

Starting with this commit, when performing saveAs, the new selected
path becomes the active project file path, and any subsequent modification
will apply to the new project file.

Closes obdasystems#142
@mnamici mnamici merged commit 5eec5e3 into obdasystems:develop Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant