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

[processing] Correctly delete processing dialogs #4964

Merged
merged 1 commit into from
Aug 5, 2017

Conversation

arnaud-morvan
Copy link
Contributor

@arnaud-morvan arnaud-morvan commented Aug 5, 2017

Description

del dlg do not delete the QT dialog, only the python variable.

Relate with 5c844a5

Checklist

Reviewing is a process done by project maintainers, mostly on a volunteer basis. We try to keep the overhead as small as possible and appreciate if you help us to do so by completing the following items. Feel free to ask in a comment if you have troubles with any of them.

  • Commit messages are descriptive and explain the rationale for changes
  • Commits which fix bugs include fixes #11111 in the commit message next to the description
  • Commits which add new features are tagged with [FEATURE] in the commit message
  • Commits which change the UI or existing user workflows are tagged with [needs-docs] in the commit message and containt sufficient information in the commit message to be documented
  • I have read the QGIS Coding Standards and this PR complies with them
  • This PR passes all existing unit tests (test results will be reported by travis-ci after opening this PR)
  • New unit tests have been added for core changes
  • I have run the scripts/prepare-commit.sh script before each commit

@arnaud-morvan arnaud-morvan changed the title [processing] Correctly delete batch and standard dialogs [processing] Correctly delete processing dialogs Aug 5, 2017
del only delete the python variable, not the dialog which is owned by the main window.
@nyalldawson
Copy link
Collaborator

I think this is the 3rd time someone's tried to fix this issue ;) I wonder if we're better off just setting the Qt.WA_DeleteOnClose flag on the dialogs here?

@arnaud-morvan
Copy link
Contributor Author

As sometimes we need to get dialog properties after it has been closed, this seems better to me, for consistency. If we can merge this, we will get rid of annoying popups when closing the project as layers are removed from the layer tree.

@nyalldawson nyalldawson merged commit ca1abdc into qgis:master Aug 5, 2017
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.

2 participants