1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-02 19:47:16 +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:
Jonas Kvinge 2022-01-29 00:17:37 +01:00
parent 98178947ae
commit 4c479301ff

View File

@ -74,6 +74,10 @@
#include "radios/radiochannel.h"
#ifdef HAVE_LIBMTP
#include "device/mtpconnection.h"
#endif
void RegisterMetaTypes() {
qRegisterMetaType<const char*>("const char*");
@ -147,4 +151,8 @@ void RegisterMetaTypes() {
qRegisterMetaType<RadioChannelList>("RadioChannelList");
#ifdef HAVE_LIBMTP
qRegisterMetaType<MtpConnection*>("MtpConnection*");
#endif
}