Account: update balance card label

This commit is contained in:
selsta 2019-12-20 07:29:19 +01:00
parent 500c7ec82e
commit 66f6b95b5c
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E
2 changed files with 2 additions and 1 deletions

View file

@ -54,7 +54,7 @@ Rectangle {
function renameSubaddressAccountLabel(_index){
inputDialog.labelText = qsTr("Set the label of the selected account:") + translationManager.emptyString;
inputDialog.onAcceptedCallback = function() {
appWindow.currentWallet.subaddressAccount.setLabel(_index, inputDialog.inputText)
appWindow.currentWallet.setSubaddressLabel(_index, 0, inputDialog.inputText)
}
inputDialog.onRejectedCallback = null;
inputDialog.open(appWindow.currentWallet.getSubaddressLabel(_index, 0))

View file

@ -361,6 +361,7 @@ QString Wallet::getSubaddressLabel(quint32 accountIndex, quint32 addressIndex) c
void Wallet::setSubaddressLabel(quint32 accountIndex, quint32 addressIndex, const QString &label)
{
m_walletImpl->setSubaddressLabel(accountIndex, addressIndex, label.toStdString());
emit currentSubaddressAccountChanged();
}
void Wallet::deviceShowAddressAsync(quint32 accountIndex, quint32 addressIndex, const QString &paymentId)
{