Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win32:staging
mingw32-kmymoney5
0001-Fix-bug-showing-incorrect-currency-symbol-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-bug-showing-incorrect-currency-symbol-in-smalles.patch of Package mingw32-kmymoney5
From 7f4412f17a9668fdbcfb26654932aaa0ffdb2846 Mon Sep 17 00:00:00 2001 From: Ralf Habacker <ralf.habacker@freenet.de> Date: Wed, 21 Aug 2024 10:33:03 +0200 Subject: [PATCH] Fix bug showing incorrect currency symbol in smallest ... fraction input fields If an empty currency name is specified when MyMoneyMoney::formatMoney() is called, the last currency set is used again. BUG:491828 FIXED-IN:5.2 --- kmymoney/dialogs/kcurrencyeditordlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmymoney/dialogs/kcurrencyeditordlg.cpp b/kmymoney/dialogs/kcurrencyeditordlg.cpp index aaf1e68e..eba29925 100644 --- a/kmymoney/dialogs/kcurrencyeditordlg.cpp +++ b/kmymoney/dialogs/kcurrencyeditordlg.cpp @@ -93,11 +93,11 @@ KCurrencyEditorDlg::KCurrencyEditorDlg(const MyMoneySecurity& currency, QWidget int precision = MyMoneyMoney::denomToPrec(currency.smallestCashFraction()); MyMoneyMoney smallestFraction = MyMoneyMoney::ONE / MyMoneyMoney(currency.smallestCashFraction()); - d->ui->leCashFraction->setText(smallestFraction.formatMoney(QString(), precision)); + d->ui->leCashFraction->setText(smallestFraction.formatMoney(currency.name(), precision)); precision = MyMoneyMoney::denomToPrec(currency.smallestAccountFraction()); smallestFraction = MyMoneyMoney::ONE / MyMoneyMoney(currency.smallestAccountFraction()); - d->ui->leAccountFraction->setText(smallestFraction.formatMoney(QString(), precision)); + d->ui->leAccountFraction->setText(smallestFraction.formatMoney(currency.name(), precision)); d->ui->comboRoundingMethod->setCurrentIndex(currency.roundingMethod()); d->ui->spbPricePrecision->setValue(currency.pricePrecision()); -- 2.46.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor