Skip to content

Commit b0510d7

Browse files
committed
Set C locale for amountWidget
Fix #13873
1 parent d799efe commit b0510d7

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)