aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-12-21 18:07:07 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-12-21 18:07:07 -0500
commit6f53cc4dda666bb615538bc7b96b9e7fbee29300 (patch)
tree8b1834ce6959db838edf661726154c69d6222293
parent86f573f02c1f2e01c0771ba06ad4d771a4158f1e (diff)
parent66f6b95b5c7b39d58dc9dc730f59ebcfee51dbd5 (diff)
downloadmonzero-gui-6f53cc4dda666bb615538bc7b96b9e7fbee29300.tar.gz
monzero-gui-6f53cc4dda666bb615538bc7b96b9e7fbee29300.tar.xz
monzero-gui-6f53cc4dda666bb615538bc7b96b9e7fbee29300.zip
Merge pull request #2645
66f6b95 Account: update balance card label (selsta)
-rw-r--r--pages/Account.qml2
-rw-r--r--src/libwalletqt/Wallet.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/pages/Account.qml b/pages/Account.qml
index 5491dc8b..b9ae66a4 100644
--- a/pages/Account.qml
+++ b/pages/Account.qml
@@ -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))
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
index 2635565e..c32026f8 100644
--- a/src/libwalletqt/Wallet.cpp
+++ b/src/libwalletqt/Wallet.cpp
@@ -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)
{