Coins: add Edit Label to context menu

This commit is contained in:
tobtoht
2021-07-02 17:27:26 +02:00
parent 4489d50b72
commit 5d89931f9d
3 changed files with 17 additions and 1 deletions
+4 -1
View File
@@ -61,7 +61,7 @@ QVariant CoinsModel::data(const QModelIndex &index, int role) const
QVariant result;
bool found = m_coins->coin(index.row(), [this, &index, &result, &role](const CoinsInfo &cInfo) {
if(role == Qt::DisplayRole || role == Qt::UserRole) {
if(role == Qt::DisplayRole || role == Qt::EditRole || role == Qt::UserRole) {
result = parseTransactionInfo(cInfo, index.column(), role);
}
else if (role == Qt::BackgroundRole) {
@@ -119,6 +119,9 @@ QVariant CoinsModel::data(const QModelIndex &index, int role) const
else if (!cInfo.unlocked()) {
result = "Output is locked (needs more confirmations)";
}
else if (cInfo.spent()) {
result = "Output is spent";
}
}
});
if (!found) {