Allow filtering by proTxHash on DIP3 MN tab (#2532)

This commit is contained in:
UdjinM6 2018-12-06 13:32:42 +03:00 committed by Alexander Block
parent 2161199210
commit 9100c69eb9

View File

@ -454,6 +454,7 @@ void MasternodeList::updateDIP3List()
operatorRewardStr = tr("NONE");
}
QTableWidgetItem* operatorRewardItem = new QTableWidgetItem(operatorRewardStr);
QTableWidgetItem* proTxHashItem = new QTableWidgetItem(QString::fromStdString(dmn->proTxHash.ToString()));
if (strCurrentFilterDIP3 != "") {
strToFilter = addressItem->text() + " " +
@ -463,12 +464,11 @@ void MasternodeList::updateDIP3List()
lastPaidItem->text() + " " +
nextPaymentItem->text() + " " +
payeeItem->text() + " " +
operatorRewardItem->text();
operatorRewardItem->text() + " " +
proTxHashItem->text();
if (!strToFilter.contains(strCurrentFilterDIP3)) return;
}
QTableWidgetItem* proTxHashItem = new QTableWidgetItem(QString::fromStdString(dmn->proTxHash.ToString()));
ui->tableWidgetMasternodesDIP3->insertRow(0);
ui->tableWidgetMasternodesDIP3->setItem(0, 0, addressItem);
ui->tableWidgetMasternodesDIP3->setItem(0, 1, statusItem);