diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2018-09-09 13:54:11 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2018-09-26 22:28:10 +0300 |
commit | b0510d78aedde864756199fe71ca98f8e95dd44f (patch) | |
tree | 112e0f190a77da89d2ebc16e701e21fe6d9099bb /src | |
parent | d799efe21432ad55c41d5315f24c002bc8b3d119 (diff) | |
download | bitcoin-b0510d78aedde864756199fe71ca98f8e95dd44f.tar.xz |
Set C locale for amountWidget
Fix #13873
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/transactionview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 6d08a3b0fb..68410c8bd6 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -106,7 +106,11 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa } else { amountWidget->setFixedWidth(100); } - 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); hlayout->addWidget(amountWidget); // Delay before filtering transactions in ms |