Browse Source

Register datatype properly

Qt 5.9.5 doesn't seem to recognize it, this patch fixes it.
Fix up: d8401c76f5.
Related: #12601.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
9efd5eaed3
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 5
      src/base/bittorrent/session.h

5
src/base/bittorrent/session.h

@ -759,4 +759,9 @@ namespace BitTorrent
}; };
} }
#if (QT_VERSION < QT_VERSION_CHECK(5, 10, 0))
Q_DECLARE_METATYPE(std::shared_ptr<lt::entry>)
const int sharedPtrLtEntryTypeID = qRegisterMetaType<std::shared_ptr<lt::entry>>();
#endif
#endif // BITTORRENT_SESSION_H #endif // BITTORRENT_SESSION_H

Loading…
Cancel
Save