@@ -735,22 +735,20 @@ void TransactionTablePriv::DispatchNotifications()
735
735
{
736
736
if (!m_loaded || m_loading) return ;
737
737
738
+ if (vQueueNotifications.size () > 10 ) { // prevent balloon spam, show maximum 10 balloons
739
+ bool invoked = QMetaObject::invokeMethod (parent, " setProcessingQueuedTransactions" , Qt::QueuedConnection, Q_ARG (bool , true ));
740
+ assert (invoked);
741
+ }
742
+ for (unsigned int i = 0 ; i < vQueueNotifications.size (); ++i)
738
743
{
739
- if (vQueueNotifications.size () > 10 ) { // prevent balloon spam, show maximum 10 balloons
740
- bool invoked = QMetaObject::invokeMethod (parent, " setProcessingQueuedTransactions" , Qt::QueuedConnection, Q_ARG (bool , true ));
744
+ if (vQueueNotifications.size () - i <= 10 ) {
745
+ bool invoked = QMetaObject::invokeMethod (parent, " setProcessingQueuedTransactions" , Qt::QueuedConnection, Q_ARG (bool , false ));
741
746
assert (invoked);
742
747
}
743
- for (unsigned int i = 0 ; i < vQueueNotifications.size (); ++i)
744
- {
745
- if (vQueueNotifications.size () - i <= 10 ) {
746
- bool invoked = QMetaObject::invokeMethod (parent, " setProcessingQueuedTransactions" , Qt::QueuedConnection, Q_ARG (bool , false ));
747
- assert (invoked);
748
- }
749
748
750
- vQueueNotifications[i].invoke (parent);
751
- }
752
- vQueueNotifications.clear ();
749
+ vQueueNotifications[i].invoke (parent);
753
750
}
751
+ vQueueNotifications.clear ();
754
752
}
755
753
756
754
void TransactionTableModel::subscribeToCoreSignals ()
0 commit comments