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

gui: center all popup windows #487

Merged
merged 2 commits into from
Jul 23, 2019
Merged

gui: center all popup windows #487

merged 2 commits into from
Jul 23, 2019

Conversation

redshiftzero
Copy link
Contributor

Description

Fixes #322

Test Plan

  • confirm LoginDialog starts in center of screen when app first launches
  • confirm when in offline mode, clicking "sign in" in the left sidebar starts the LoginDialog in the center of the screen
  • confirm that the source deletion dialog launches in the center of the screen when clicked via the "..." button

Checklist

If these changes modify code paths involving cryptography, the opening of files in VMs, network (via the RPC service) traffic, or fine tuning of the graphical user interface, Qubes testing is required. Please check as applicable:

  • I have tested these changes in Qubes
  • I do not have a Qubes OS workstation (the reviewer will need to test these changes in Qubes)
  • UI/qt only

The effect of removing the parent to QMessageBox means that the
box gets rendered in the center of the screen (controlled by the
window manager) instead of at the center of the parent.

Be aware that by using QMessageBox.question we were
not allowing deletion of the parent to delete the child:

https://doc.qt.io/qt-5/qmessagebox.html#question
Copy link
Contributor

@kushaldas kushaldas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on my system, approved 🌈

  • confirm LoginDialog starts in center of screen when app first launches
  • confirm when in offline mode, clicking "sign in" in the left sidebar starts the LoginDialog in the center of the screen
  • confirm that the source deletion dialog launches in the center of the screen when clicked via the "..." button

@kushaldas kushaldas merged commit d255fc9 into master Jul 23, 2019
@kushaldas kushaldas deleted the center-popups branch July 23, 2019 08:06
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.

Dialogs appearing in unexpected locations
2 participants