Skip to content

refactor: Signal-slot connections cleanup - #333

Merged
hebasto merged 3 commits into
bitcoin-core:masterfrom
hebasto:210515-slots
Jun 12, 2021
Merged

refactor: Signal-slot connections cleanup#333
hebasto merged 3 commits into
bitcoin-core:masterfrom
hebasto:210515-slots

Conversation

@hebasto

Copy link
Copy Markdown
Member

This PR:

  • removes slots whose only job is to emit a signal, since we can use the signal as a slot
  • connects theWalletView::outOfSyncWarningClicked signal to the BitcoinGUI::showModalOverlay slot directly, and removes intermediate WalletFrame slot and signal
  • split from refactor: Optimize signal-slot connections logic #29

This PR does not change behavior.

@jarolrodjarolrod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK faf0639

Reviewed the code and tested that each commit can compile and run on its own. Also tested to ensure there is no change in functionality. This is a nice simplification of the signal/slot logic

@hebasto

Copy link
Copy Markdown
MemberAuthor

@promag@ryanofsky@Sjors@Talkless

Could you look into this PR, please?

hebasto added 3 commits June 6, 2021 01:04
This change makes a connection directly to the signal that was emitted
in the removed slot.
This commit does not change behavior.
This change makes a connection directly to the signal that was emitted
in the removed slot.
This commit does not change behavior.
This change removes redundant intermediate WalletFrame connections.
This commit does not change behavior.
@hebasto

Copy link
Copy Markdown
MemberAuthor

Rebased faf0639 -> f507681 (pr333.01 -> pr333.02) due to the conflict with #29.

@TalklessTalkless left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

tACK f507681, tested on Debian Sid with Qt 5.15.2, no any behavioral changes noticed.

@promagpromag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code review ACK f507681.

@hebasto
hebasto merged commit 6f3fbc0 into bitcoin-core:masterJun 12, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 13, 2021
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin-corebitcoin-core locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@hebasto@Talkless@promag@jarolrod