Skip to content

Commit 4b24380

Browse files
committed
[GUI] Connect P2CSUnlockOwner and P2CSUnlockStaker records to the model
1 parent 1a12735 commit 4b24380

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/qt/pivx/txrow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ void TxRow::setType(bool isLightTheme, int type, bool isConfirmed){
101101
path = "://ic-transaction-cs-contract";
102102
css = "text-list-amount-unconfirmed";
103103
break;
104+
case TransactionRecord::P2CSUnlockOwner:
105+
case TransactionRecord::P2CSUnlockStaker:
106+
path = "://ic-transaction-cs-contract";
107+
css = "text-list-amount-send";
108+
break;
104109
default:
105110
path = "://ic-pending";
106111
sameIcon = true;

src/qt/transactiontablemodel.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@ QString TransactionTableModel::formatTxType(const TransactionRecord* wtx) const
464464
case TransactionRecord::P2CSDelegationSentOwner:
465465
case TransactionRecord::P2CSDelegation:
466466
return tr("Stake delegation");
467+
case TransactionRecord::P2CSUnlockOwner:
468+
case TransactionRecord::P2CSUnlockStaker:
469+
return tr("Stake delegation spent by");
467470
case TransactionRecord::Generated:
468471
return tr("Mined");
469472
case TransactionRecord::ObfuscationDenominate:
@@ -545,6 +548,8 @@ QString TransactionTableModel::formatTxToAddress(const TransactionRecord* wtx, b
545548
case TransactionRecord::P2CSDelegation:
546549
case TransactionRecord::P2CSDelegationSent:
547550
case TransactionRecord::P2CSDelegationSentOwner:
551+
case TransactionRecord::P2CSUnlockOwner:
552+
case TransactionRecord::P2CSUnlockStaker:
548553
case TransactionRecord::StakeDelegated:
549554
case TransactionRecord::StakeHot:
550555
case TransactionRecord::SendToSelf: {

0 commit comments

Comments
 (0)