Details
Description
In qBittorrent we override QCoreApplication::event() for the macOS platform so we can observe QFileOpenEvent and handle our custom URI (magnet links).
We bundle a suitable Info.plist for this, which you can see here.
Our override is here.
Up until 6.7.3 this worked fine. Every time the user clicked on a magnet link in their browser, qBittorrent was launched and the magnet URI was loaded.
With 6.8.1/6.8.2 a QFileOpenEvent isn't emitted anymore for magnet links. So qBittorrent opens but doesn't load the magnet URI.
Some users noted that the following commits introduced the problem:
1. https://code.qt.io/cgit/qt/qtbase.git/commit/?id=664c7ffb212eb898ed03f7b19c883400fa027b6b
2. https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e8e881ba35fe7009961cbeb4b89efedc5371d5b5
Those fixed QTBUG-124340
Link to our bug: https://github.com/qbittorrent/qBittorrent/issues/22303
Attachments
For Gerrit Dashboard: QTBUG-134316 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
629664,5 | Allow unhandled custom uri-scheme opens to create QFileInfoEvent | dev | qt/qtbase | Status: MERGED | +2 | 0 |
629754,2 | Allow unhandled custom uri-scheme opens to create QFileInfoEvent | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
629815,2 | Allow unhandled custom uri-scheme opens to create QFileInfoEvent | 6.9.0 | qt/qtbase | Status: MERGED | +2 | 0 |
629816,2 | Allow unhandled custom uri-scheme opens to create QFileInfoEvent | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
629899,2 | Allow unhandled custom uri-scheme opens to create QFileInfoEvent | 6.8.3 | qt/qtbase | Status: MERGED | +2 | 0 |