From 166850ad5db459082e05bccfed93b10cf1bf62fb Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 18 Oct 2018 12:25:53 +0200 Subject: [PATCH] Merge #14177: qt: Set C locale for amountWidget b0510d78aedde864756199fe71ca98f8e95dd44f Set C locale for amountWidget (Hennadii Stepanov) Pull request description: Fix #13873 Tree-SHA512: ef26b35ef83c3a87ebd90650f6d833b00a24f6c114b68fe01acd4a14d1f5bdec066f438eb7781c1e55c32640838c54e00b8f082c390639ade8d9a58830833d4a --- src/qt/transactionview.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 90a023009d..6bf3f607da 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -104,7 +104,11 @@ TransactionView::TransactionView(QWidget* parent) : amountWidget = new QLineEdit(this); amountWidget->setPlaceholderText(tr("Min amount")); amountWidget->setFixedWidth(125); - amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this)); + QDoubleValidator *amountValidator = new QDoubleValidator(0, 1e20, 8, this); + QLocale amountLocale(QLocale::C); + amountLocale.setNumberOptions(QLocale::RejectGroupSeparator); + amountValidator->setLocale(amountLocale); + amountWidget->setValidator(amountValidator); amountWidget->setObjectName("amountWidget"); hlayout->addWidget(amountWidget);