| 729 | } |
| 730 | |
| 731 | void TransactionTablePriv::DispatchNotifications() |
| 732 | { |
| 733 | if (!m_loaded || m_loading) return; |
| 734 | |
| 735 | if (vQueueNotifications.size() > 10) { // prevent balloon spam, show maximum 10 balloons |
| 736 | bool invoked = QMetaObject::invokeMethod(parent, "setProcessingQueuedTransactions", Qt::QueuedConnection, Q_ARG(bool, true)); |
| 737 | assert(invoked); |
| 738 | } |
| 739 | for (unsigned int i = 0; i < vQueueNotifications.size(); ++i) |
| 740 | { |
| 741 | if (vQueueNotifications.size() - i <= 10) { |
| 742 | bool invoked = QMetaObject::invokeMethod(parent, "setProcessingQueuedTransactions", Qt::QueuedConnection, Q_ARG(bool, false)); |
| 743 | assert(invoked); |
| 744 | } |
| 745 | |
| 746 | vQueueNotifications[i].invoke(parent); |
| 747 | } |
| 748 | vQueueNotifications.clear(); |
| 749 | } |
| 750 | |
| 751 | void TransactionTableModel::subscribeToCoreSignals() |
| 752 | { |
no test coverage detected