mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-07 08:02:30 -06:00
Fix Info.plist file
This commit is contained in:
@@ -29,6 +29,17 @@
|
|||||||
<true/>
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
|
<key>CFBundleURLTypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleURLSchemes</key>
|
||||||
|
<array>
|
||||||
|
<string>magnet</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleURLName</key>
|
||||||
|
<string>BitTorrent Magnet URL</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>qbittorrent_mac.icns</string>
|
<string>qbittorrent_mac.icns</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ bool QMacApplication::event(QEvent * ev) {
|
|||||||
case QEvent::FileOpen:
|
case QEvent::FileOpen:
|
||||||
{
|
{
|
||||||
QString path = static_cast<QFileOpenEvent *>(ev)->file();
|
QString path = static_cast<QFileOpenEvent *>(ev)->file();
|
||||||
|
if(path.isEmpty()) {
|
||||||
|
// Get the url instead
|
||||||
|
path = static_cast<QFileOpenEvent *>(ev)->url();
|
||||||
|
}
|
||||||
qDebug("Received a mac file open event: %s", qPrintable(path));
|
qDebug("Received a mac file open event: %s", qPrintable(path));
|
||||||
emit newFileOpenMacEvent(path);
|
emit newFileOpenMacEvent(path);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user