Set C locale for amountWidget

Fix #13873
This commit is contained in:
Hennadii Stepanov committed 2018-09-26 22:28:10 +03:00
1 parent d799efe214
commit b0510d78ae
1 file changed
+5 -1
+5 -1
View File
@@ -106,7 +106,11 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
} else { } else {
amountWidget->setFixedWidth(100); 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); hlayout->addWidget(amountWidget);
// Delay before filtering transactions in ms // Delay before filtering transactions in ms