Skip to content

Commit 32c5f18

Browse files
committed
Merge #14177: qt: Set C locale for amountWidget
b0510d7 Set C locale for amountWidget (Hennadii Stepanov) Pull request description: Fix #13873 Tree-SHA512: ef26b35ef83c3a87ebd90650f6d833b00a24f6c114b68fe01acd4a14d1f5bdec066f438eb7781c1e55c32640838c54e00b8f082c390639ade8d9a58830833d4a
2 parents d98777f + b0510d7 commit 32c5f18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/qt/transactionview.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
106106
} else {
107107
amountWidget->setFixedWidth(100);
108108
}
109-
amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
109+
QDoubleValidator *amountValidator = new QDoubleValidator(0, 1e20, 8, this);
110+
QLocale amountLocale(QLocale::C);
111+
amountLocale.setNumberOptions(QLocale::RejectGroupSeparator);
112+
amountValidator->setLocale(amountLocale);
113+
amountWidget->setValidator(amountValidator);
110114
hlayout->addWidget(amountWidget);
111115

112116
// Delay before filtering transactions in ms

0 commit comments

Comments
 (0)