This PR is a prerequisite for more thorough testing of filtering in the AddressBookPage class in context of bitcoin-core/gui#578 and bitcoin-core/gui#585.
Required for bitcoin-core/gui#592.
This PR is a prerequisite for more thorough testing of filtering in the AddressBookPage class in context of bitcoin-core/gui#578 and bitcoin-core/gui#585.
Required for bitcoin-core/gui#592.
This change simplifies tests for `AddressBookPage` class.
No user-faced behavior change.
Concept ACK
in edae3ab6999ee9e6efabd8403d31e9bd7c84f8a3, we can do this because when not specifying the connection type; there is an invokeMethod overload that uses Qt:AutoConnection. In this context Qt::AutoConnection will really be Qt::QueuedConnection1 because the receiver and emitter are in different threads.
368 | @@ -369,7 +369,7 @@ static void NotifyAddressBookChanged(WalletModel *walletmodel, 369 | QString strPurpose = QString::fromStdString(purpose); 370 | 371 | qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + " isMine=" + QString::number(isMine) + " purpose=" + strPurpose + " status=" + QString::number(status); 372 | - bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook", Qt::QueuedConnection, 373 | + bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook",
edae3ab6999ee9e6efabd8403d31e9bd7c84f8a3
Could replace with lambda while touching this code.
Code review ACK 15069130c6ca5273f3a593a404f60f11caa7d950.