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

remove now unnecessary QApplication.processEvents calls #459

Merged
merged 1 commit into from Jul 3, 2019

Conversation

redshiftzero
Copy link
Contributor

Description

Fixes #419. @creviera is correct: since we're not running this queue in the GUI thread, events will be processed without needing to explicitly call QApplication.processEvents.

Test Plan

You can verify for yourself that events are being processed by checking out this diff, adding a time.sleep(5) at the end of the queue loop here and running the application. You'll see each job finish and the UI update as expected after each job.

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)
  • These changes do not need to be tested in Qubes, qt only

We're not running this queue in the GUI thread so we shouldn't need
to explicitly call processEvents.

And testing for stale mocks should not be needed here as
the mocker.patch fixture cleans up unused mocks after each test runs.
@redshiftzero redshiftzero added this to Ready for review in SecureDrop Team Board Jul 2, 2019
@sssoleileraaa sssoleileraaa moved this from Ready for review to Under Review in SecureDrop Team Board Jul 3, 2019
Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

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

lgtm

@sssoleileraaa sssoleileraaa merged commit f7d87b4 into master Jul 3, 2019
SecureDrop Team Board automation moved this from Under Review to Done Jul 3, 2019
@sssoleileraaa sssoleileraaa deleted the qtprocessevents branch July 3, 2019 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

document or remove QApplication.processEvents() call from queue logic
2 participants