mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
Register datatype properly
Qt 5.9.5 doesn't seem to recognize it, this patch fixes it.
Fix up: d8401c76f5
.
Related: #12601.
This commit is contained in:
parent
6e375a38ef
commit
c67d863c93
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue