mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-06 21:31:23 +01:00
Register MtpConnection as metatype
Fixes: ``` 00:13:02.210 WARN unknown QObject::connect: Cannot queue arguments of type 'MtpConnection*' 00:13:02.210 WARN unknown (Make sure 'MtpConnection*' is registered using qRegisterMetaType().) ```
This commit is contained in:
parent
98178947ae
commit
4c479301ff
@ -74,6 +74,10 @@
|
|||||||
|
|
||||||
#include "radios/radiochannel.h"
|
#include "radios/radiochannel.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBMTP
|
||||||
|
#include "device/mtpconnection.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void RegisterMetaTypes() {
|
void RegisterMetaTypes() {
|
||||||
|
|
||||||
qRegisterMetaType<const char*>("const char*");
|
qRegisterMetaType<const char*>("const char*");
|
||||||
@ -147,4 +151,8 @@ void RegisterMetaTypes() {
|
|||||||
|
|
||||||
qRegisterMetaType<RadioChannelList>("RadioChannelList");
|
qRegisterMetaType<RadioChannelList>("RadioChannelList");
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBMTP
|
||||||
|
qRegisterMetaType<MtpConnection*>("MtpConnection*");
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user