Skip to content

Conversation

@promag
Copy link
Contributor

@promag promag commented Feb 25, 2019

This PR changes the thread of the OpenWalletActivity, from the wallet controller thread to the GUI thread. The actual opening is still executed in the wallet controller thread, but in a different way. Considering the current minimum Qt version, the best way to run a function in a different thread is to use QTimer::singleShot(0, worker, () { ... }) where worker is an object in a different thread. With Qt 5.10, the correct way is to use QMetaObject::invokeMethod.

This change also removes from bitcoingui.cpp the handling of loading messages and progress dialog.

@promag promag force-pushed the 2019-02-refactor-open-wallet branch from 05d174c to 509f8fb Compare February 25, 2019 21:22
@fanquake fanquake added the GUI label Feb 25, 2019
@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 25, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #15450 ([GUI] Create wallet menu option by achow101)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@jonasschnelli
Copy link
Contributor

Concept ACK, needs rebase.

@promag promag force-pushed the 2019-02-refactor-open-wallet branch from 509f8fb to 4e706a0 Compare March 17, 2019 23:39
@promag promag changed the title wip: gui: Refactor open wallet activity gui: Refactor open wallet activity May 28, 2019
@promag promag force-pushed the 2019-02-refactor-open-wallet branch from 4e706a0 to 28aa82f Compare May 28, 2019 09:45
@promag
Copy link
Contributor Author

promag commented May 28, 2019

Rebased.

@promag promag closed this Jun 14, 2019
@promag promag deleted the 2019-02-refactor-open-wallet branch June 14, 2019 15:24
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants