Browse Source

Mac fixes

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
d470059c56
  1. 4
      src/Info.plist
  2. 3
      src/qmacapplication.cpp

4
src/Info.plist

@ -13,6 +13,10 @@ @@ -13,6 +13,10 @@
<string>qbittorrentDocument</string>
<key>CFBundleTypeName</key>
<string>BitTorrent Document</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/x-bittorrent</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>

3
src/qmacapplication.cpp

@ -36,7 +36,6 @@ QMacApplication::QMacApplication(QString appid, int &argc, char** argv) : @@ -36,7 +36,6 @@ QMacApplication::QMacApplication(QString appid, int &argc, char** argv) :
{
}
bool QMacApplication::event(QEvent * event) {
switch (event->type()) {
case QEvent::FileOpen:
@ -46,7 +45,7 @@ bool QMacApplication::event(QEvent * event) { @@ -46,7 +45,7 @@ bool QMacApplication::event(QEvent * event) {
return true;
}
default:
return QApplication::event(event);
return QApplication::QtSingleApplication(event);
}
}

Loading…
Cancel
Save