Skip to content

Commit 0ed6bd9

Browse files
committed
qml: Disable multipleRecipients after clearing the recipients list
1 parent ed4ba2a commit 0ed6bd9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/qml/models/sendrecipientslistmodel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ void SendRecipientsListModel::clear()
147147
Q_EMIT totalAmountChanged();
148148
Q_EMIT currentRecipientChanged();
149149
Q_EMIT currentIndexChanged();
150+
Q_EMIT listCleared();
150151
}
151152

152153
void SendRecipientsListModel::clearToFront()

src/qml/models/sendrecipientslistmodel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class SendRecipientsListModel : public QAbstractListModel
5353
void currentRecipientChanged();
5454
void countChanged();
5555
void totalAmountChanged();
56+
void listCleared();
5657

5758
private:
5859
void updateTotalAmount();

src/qml/pages/wallet/Send.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ PageStack {
2727
}
2828
}
2929

30+
Connections {
31+
target: root.wallet.recipients
32+
function onListCleared() {
33+
settings.multipleRecipientsEnabled = false
34+
}
35+
}
36+
37+
3038
initialItem: Page {
3139
background: null
3240

0 commit comments

Comments
 (0)