History: fix amount copy

This commit is contained in:
tobtoht 2024-01-03 22:30:23 +01:00
parent a8eac7efeb
commit d7caca6756
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -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("");
}