From: tobtoht Date: Wed, 3 Jan 2024 21:30:23 +0000 (+0100) Subject: History: fix amount copy X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=d7caca6756754ad9fe95ee91b1e0df3e1cde7805;p=gamesguru%2Ffeather.git History: fix amount copy --- diff --git a/src/HistoryWidget.cpp b/src/HistoryWidget.cpp index ab44724d..15a3d812 100644 --- a/src/HistoryWidget.cpp +++ b/src/HistoryWidget.cpp @@ -167,7 +167,7 @@ void HistoryWidget::copy(copyField field) { return tx->timestamp().toString(QString("%1 %2").arg(conf()->get(Config::dateFormat).toString(), conf()->get(Config::timeFormat).toString())); case copyField::Amount: - return WalletManager::displayAmount(tx->balanceDelta()); + return WalletManager::displayAmount(abs(tx->balanceDelta())); default: return QString(""); }