receive: add option to show change addresses

This commit is contained in:
tobtoht
2023-06-27 15:21:46 +02:00
parent fa33172760
commit 906bd164e4
5 changed files with 30 additions and 7 deletions
+9 -1
View File
@@ -110,7 +110,15 @@ QVariant SubaddressModel::parseSubaddressRow(const Monero::SubaddressRow &subadd
return address;
}
case Label:
return index.row() == 0 ? tr("Primary address") : QString::fromStdString(subaddress.getLabel());
{
if (m_currentSubaddressAccount == 0 && index.row() == 0) {
return "Primary address";
}
else if (index.row() == 0) {
return "Change";
}
return QString::fromStdString(subaddress.getLabel());
}
case isUsed:
return subaddress.isUsed();
default: