mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Mac specific changes by Stephanos Antaris
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user