TxHashRole
authorfsb4000 <fsb4000@yandex.ru>
Sat, 15 Nov 2014 11:05:22 +0000 (17:05 +0600)
committerfsb4000 <fsb4000@yandex.ru>
Sat, 15 Nov 2014 11:05:22 +0000 (17:05 +0600)
В функцию TransactionTableModel::data добавлена возможность получения
хеша, нужно для замены %s на хеш транзакции в функции
TransactionView::openThirdPartyTxUrl

src/qt/transactiontablemodel.cpp

index f0ec309..01efd1f 100644 (file)
@@ -572,6 +572,8 @@ QVariant TransactionTableModel::data(const QModelIndex &index, int role) const
         return rec->credit + rec->debit;
     case TxIDRole:
         return QString::fromStdString(rec->getTxID());
+    case TxHashRole:
+        return QString::fromStdString(rec->hash.ToString());
     case ConfirmedRole:
         // Return True if transaction counts for balance
         return rec->status.confirmed && !(rec->type == TransactionRecord::Generated && rec->status.maturity != TransactionStatus::Mature);