diff --git a/src/gui/powermanagement/powermanagement.cpp b/src/gui/powermanagement/powermanagement.cpp index dbb7cf436..c3029be96 100644 --- a/src/gui/powermanagement/powermanagement.cpp +++ b/src/gui/powermanagement/powermanagement.cpp @@ -73,7 +73,8 @@ void PowerManagement::setBusy() #elif (defined(Q_OS_UNIX) && !defined(Q_OS_MAC)) && defined(QT_DBUS_LIB) m_inhibitor->requestBusy(); #elif defined(Q_OS_MAC) - IOReturn success = IOPMAssertionCreate(kIOPMAssertionTypeNoIdleSleep, kIOPMAssertionLevelOn, &m_assertionID); + IOReturn success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoIdleSleep, kIOPMAssertionLevelOn + , tr("qBittorrent is active").toCFString(), &m_assertionID); if (success != kIOReturnSuccess) m_busy = false; #endif