diff options
| author | J Ross Nicoll <[email protected]> | 2015-09-07 18:44:59 +0100 |
|---|---|---|
| committer | J Ross Nicoll <[email protected]> | 2015-09-08 22:07:34 +0100 |
| commit | 8cc0d8165fbc2eef1f11206152f90334bbbf44bb (patch) | |
| tree | 21da25fe25d0591c7ecdbfb4f64275c0d1f304e6 /src/qt/guiutil.cpp | |
| parent | qt: use QChar(0x03BC) for mu symbol (diff) | |
| download | archived-discoin-1.10-beta-2.tar.xz archived-discoin-1.10-beta-2.zip | |
qt: Replace thin spaces with locale-specific number formattingv1.10-beta-2
Diffstat (limited to 'src/qt/guiutil.cpp')
| -rw-r--r-- | src/qt/guiutil.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index d41aae114..38c7c4211 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -161,7 +161,10 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out) { if(!i->second.isEmpty()) { - if(!BitcoinUnits::parse(BitcoinUnits::BTC, i->second, &rv.amount)) + // Parse amount in C locale with no number separators + QLocale locale(QLocale::c()); + locale.setNumberOptions(QLocale::OmitGroupSeparator | QLocale::RejectGroupSeparator); + if(!BitcoinUnits::parse(BitcoinUnits::BTC, i->second, &rv.amount, locale)) { return false; } |