Skip to content

src/net.cpp: Fail to listen alert text break fix#476

Closed
RandyMcMillan wants to merge 1 commit intobitcoin-core:masterfrom
bitcoincore-dev:net-cpp-listen-alert
Closed

src/net.cpp: Fail to listen alert text break fix#476
RandyMcMillan wants to merge 1 commit intobitcoin-core:masterfrom
bitcoincore-dev:net-cpp-listen-alert

Conversation

@RandyMcMillan
Copy link
Copy Markdown
Contributor

No description provided.

@RandyMcMillan
Copy link
Copy Markdown
Contributor Author

When another instance of bitcoin is running:

Screen Shot 2021-11-19 at 10 09 11 PM

Before:
Screen Shot 2021-11-19 at 10 09 18 PM

After:
Screen Shot 2021-11-19 at 10 10 37 PM

Copy link
Copy Markdown
Contributor

@shaavan shaavan left a comment

Choose a reason for hiding this comment

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

ACK a5097f3

Simple but necessary change. Before line break, the usage of -listen=0 was not evident, and - could have confused a simple text hyphen. This PR removes the scope for that doubt.
Nice catch, @RandyMcMillan!

@katesalazar
Copy link
Copy Markdown

Concept ACK.

@hebasto
Copy link
Copy Markdown
Member

hebasto commented Nov 21, 2021

Why don't use

constexpr QChar nonbreaking_hyphen(8209);

which we already use in our code?

For translated messages we cannot be sure that the chosen location of the hardcoded \n is optimal.

@hebasto
Copy link
Copy Markdown
Member

hebasto commented Nov 21, 2021

@RandyMcMillan

Could you move this PR into the main repo because it changes the code outside the src/qt/ directory?

@bitcoin-core bitcoin-core locked and limited conversation to collaborators Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants