Remove confusing "Dust" label from coincontrol / sendcoins dialog#719
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
8b7c589 to
944263a
Compare
|
@furszy: Thanks, good catch, completely missed that! Force-pushed to remove that as well. (FWIW, I do think having a dust label in the sendcoins dialog would be useful, but only if it is always displayed, independently of whether coin control is used). |
furszy
left a comment
There was a problem hiding this comment.
While you are here, could also align the "bytes" and "change" labels to left. Feel free to squash this:
furszy/bitcoin-core@53165e3
Could you post a screenshot on how dialogs look before/after this change? On my end this doesn't change anything and the alignment seems to be fine even on master. |
| <item> | ||
| <layout class="QFormLayout" name="formLayoutCoinControl1"> | ||
| <property name="labelAlignment"> | ||
| <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
There was a problem hiding this comment.
Isn't Qt::AlignLeading a synonym for Qt::AlignLeft?
There was a problem hiding this comment.
I'm not too experienced with Qt, can anyone elaborate on that question (ping @furszy as author of the second commit)? It seems at least that we already have a couple of instances in master where both Qt::AlignLeading and Qt::AlignLeft are used together:
$ git grep AlignLeading
src/qt/forms/debugwindow.ui: <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
src/qt/forms/helpmessagedialog.ui: <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
src/qt/forms/helpmessagedialog.ui: <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
src/qt/forms/signverifymessagedialog.ui: <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
There was a problem hiding this comment.
It seems at least that we already have a couple of instances in master where both Qt::AlignLeading and Qt::AlignLeft are used together.
Quite sure that we have them because of QT creator setting the value automatically. Probably because there is some ancient qt version that doesn't have them as synonyms.
But for us, it should be fine to drop them, even qt 4.8 has them as synonyms (link).
There was a problem hiding this comment.
@furszy: Thanks a lot for checking. I removed the redundant Qt::AlignLeading properties from the second commit, i.e. it's only Qt::AlignLeft remaining.
|
Concept ACK |
|
Concept ACK, but I see no change from the second commit. Only the coincontrol dialog's "Dust" field disappears - nothing else differs in my screenshots. |
In contrast to to all other labels on the coin selection dialog, the displayed dust information has nothing to do with the selected coins. All that this label shows is whether at least one of the _outputs_ qualify as dust, but the outputs are set in a different dialog. (Even worse, the dust check is currently simply wrong because it only looks at an output's nValue and just assumes a P2PKH script size.) As the label clearly doesn't help the user and is, quite the contrary, rather increasing confusion/misguidance, it seems sensible to remove it. Also, remove the label from the sendcoins dialog with the same rationale.
394300c to
ef4185d
Compare
Sorry for the late reply, missed that. Force-pushed with an adapted commit message (and changed PR title / description as well): |
ef4185d to
a582b41
Compare


In contrast to to all other labels on the coin selection dialog, the displayed dust information has nothing to do with the selected coins. All that this label shows is whether at least one of the outputs qualify as dust, but the outputs are set in a different dialog. (Even worse, the dust check is currently simply wrong because it only looks at an output's nValue and just assumes a P2PKH script size.)
As the label clearly doesn't help the user and is, quite the contrary, rather increasing confusion/misguidance, it seems sensible to remove it. The label from the sendcoins dialog is also removed with the same rationale. Additionally, the "bytes" and "change" labels are aligned to the left (second commit).
Closes #699.