File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4040#include < qt/paymentserver.h>
4141#include < qt/walletcontroller.h>
4242#include < qt/walletmodel.h>
43+ #include < wallet/types.h>
4344#endif // ENABLE_WALLET
4445
4546#include < boost/signals2/connection.hpp>
@@ -79,6 +80,9 @@ Q_DECLARE_METATYPE(CAmount)
7980Q_DECLARE_METATYPE(SynchronizationState)
8081Q_DECLARE_METATYPE(SyncType)
8182Q_DECLARE_METATYPE(uint256)
83+ #ifdef ENABLE_WALLET
84+ Q_DECLARE_METATYPE (wallet::AddressPurpose)
85+ #endif // ENABLE_WALLET
8286
8387static void RegisterMetaTypes ()
8488{
@@ -88,7 +92,8 @@ static void RegisterMetaTypes()
8892 qRegisterMetaType<SyncType>();
8993 #ifdef ENABLE_WALLET
9094 qRegisterMetaType<WalletModel*>();
91- #endif
95+ qRegisterMetaType<wallet::AddressPurpose>();
96+ #endif // ENABLE_WALLET
9297 // Register typedefs (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType)
9398 // IMPORTANT: if CAmount is no longer a typedef use the normal variant above (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType-1)
9499 qRegisterMetaType<CAmount>(" CAmount" );
You can’t perform that action at this time.
0 commit comments