On master (094d9fda5ccee7d78a2e3d8b1eec17b8b6a33466), the following queued connection https://github.com/bitcoin-core/gui/blob/094d9fda5ccee7d78a2e3d8b1eec17b8b6a33466/src/qt/rpcconsole.cpp#L1107 uses a const WalletModel*
parameter regardless whether the ENABLE_WALLET
macro is defined.
Although this code works in Qt 5, it is flawed. On Qt 6, the code gets broken because the fully defined WalletModel
type is required which is not the case if ENABLE_WALLET
is undefined.
This PR fixes the issue described above.