mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Mac specific changes by Stephanos Antaris
This commit is contained in:
parent
0e9abc1762
commit
2cd4937ddc
2 changed files with 6 additions and 5 deletions
|
@ -54,6 +54,7 @@ const int UNLEN = 256;
|
|||
|
||||
#ifdef Q_WS_MAC
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif
|
||||
|
||||
#ifndef Q_WS_WIN
|
||||
|
@ -210,7 +211,7 @@ void misc::shutdownComputer() {
|
|||
|
||||
if (error != noErr)
|
||||
{
|
||||
return(error);
|
||||
return;
|
||||
}
|
||||
|
||||
error = AECreateAppleEvent(kCoreEventClass, EventToSend, &targetDesc,
|
||||
|
@ -219,7 +220,7 @@ void misc::shutdownComputer() {
|
|||
AEDisposeDesc(&targetDesc);
|
||||
if (error != noErr)
|
||||
{
|
||||
return(error);
|
||||
return;
|
||||
}
|
||||
|
||||
error = AESend(&appleEventToSend, &eventReply, kAENoReply,
|
||||
|
@ -228,7 +229,7 @@ void misc::shutdownComputer() {
|
|||
AEDisposeDesc(&appleEventToSend);
|
||||
if (error != noErr)
|
||||
{
|
||||
return(error);
|
||||
return;
|
||||
}
|
||||
|
||||
AEDisposeDesc(&eventReply);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue