mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Mac fixes
This commit is contained in:
parent
2e382fa88c
commit
d470059c56
2 changed files with 5 additions and 2 deletions
|
@ -13,6 +13,10 @@
|
||||||
<string>qbittorrentDocument</string>
|
<string>qbittorrentDocument</string>
|
||||||
<key>CFBundleTypeName</key>
|
<key>CFBundleTypeName</key>
|
||||||
<string>BitTorrent Document</string>
|
<string>BitTorrent Document</string>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>image/x-bittorrent</string>
|
||||||
|
</array>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Viewer</string>
|
<string>Viewer</string>
|
||||||
<key>LSHandlerRank</key>
|
<key>LSHandlerRank</key>
|
||||||
|
|
|
@ -36,7 +36,6 @@ QMacApplication::QMacApplication(QString appid, int &argc, char** argv) :
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool QMacApplication::event(QEvent * event) {
|
bool QMacApplication::event(QEvent * event) {
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::FileOpen:
|
case QEvent::FileOpen:
|
||||||
|
@ -46,7 +45,7 @@ bool QMacApplication::event(QEvent * event) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return QApplication::event(event);
|
return QApplication::QtSingleApplication(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue