]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
History: fix amount copy
authortobtoht <tob@featherwallet.org>
Wed, 3 Jan 2024 21:30:23 +0000 (22:30 +0100)
committertobtoht <tob@featherwallet.org>
Wed, 3 Jan 2024 21:31:23 +0000 (22:31 +0100)
src/HistoryWidget.cpp

index ab44724d31f16edd27c3c1ea6e44c59fcbcb4630..15a3d812144652e2938381a77ead59384d1adf0c 100644 (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("");
         }