We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c54a1 commit f8eb08fCopy full SHA for f8eb08f
qml/models/sendrecipientslistmodel.cpp
@@ -152,6 +152,12 @@ void SendRecipientsListModel::clear()
152
153
void SendRecipientsListModel::clearToFront()
154
{
155
+ if (m_current != 0) {
156
+ m_current = 0;
157
+ Q_EMIT currentRecipientChanged();
158
+ Q_EMIT currentIndexChanged();
159
+ }
160
+
161
bool count_changed = false;
162
while (m_recipients.size() > 1) {
163
delete m_recipients.at(1);
@@ -167,10 +173,4 @@ void SendRecipientsListModel::clearToFront()
167
173
m_totalAmount = m_recipients[0]->amount()->satoshi();
168
174
Q_EMIT totalAmountChanged();
169
175
}
170
-
171
- if (m_current != 0) {
172
- m_current = 0;
- Q_EMIT currentRecipientChanged();
- Q_EMIT currentIndexChanged();
- }
176
0 commit comments