Chocobo1 4 years ago
parent
commit
8ec26e9ea9
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/gui/macutilities.mm

4
src/gui/macutilities.mm

@ -68,14 +68,14 @@ namespace MacUtils @@ -68,14 +68,14 @@ namespace MacUtils
if (class_getInstanceMethod(delClass, shouldHandle))
{
if (class_replaceMethod(delClass, shouldHandle, (IMP)dockClickHandler, "B@:"))
if (class_replaceMethod(delClass, shouldHandle, reinterpret_cast<IMP>(dockClickHandler), "B@:"))
qDebug("Registered dock click handler (replaced original method)");
else
qWarning("Failed to replace method for dock click handler");
}
else
{
if (class_addMethod(delClass, shouldHandle, (IMP)dockClickHandler, "B@:"))
if (class_addMethod(delClass, shouldHandle, reinterpret_cast<IMP>(dockClickHandler), "B@:"))
qDebug("Registered dock click handler");
else
qWarning("Failed to register dock click handler");

Loading…
Cancel
Save