Fix Mac OS X compilation.

This commit is contained in:
sledgehammer999 2014-10-06 02:34:20 +03:00
parent f97238e1c9
commit 1fd2dce0bd

View File

@ -136,8 +136,8 @@ void misc::shutdownComputer(shutDownAction action) {
}
#endif
#ifdef Q_WS_MAC
AEEventID EventToSend;
if (action != SHUTDOWN_COMPUTER)
if (sleep)
EventToSend = kAESleep;
else
EventToSend = kAEShutDown;