# apply patch error

• hi there,
i am using qt 4.8.7 compiled from source. Currently, i have noticed modal end session errors and when i searched online, i found there is a bug reported at this link and there are many patches Rev2 and Rev3 ..

https://bugreports.qt.io/browse/QTBUG-40585

I don't know which patch should i apply.
when i applied patch rev3 directly i got the following

Sherif:kernel sherifomran\$ patch qeventdispatcher_mac.mm QTBUG-40585-Rev3.patch
patching file qeventdispatcher_mac.mm
Hunk #1 FAILED at 558.
Hunk #2 FAILED at 599.
Hunk #3 FAILED at 656.
Hunk #4 FAILED at 866.
Hunk #5 FAILED at 967.
Hunk #6 FAILED at 984.
Hunk #7 FAILED at 1007.
Hunk #8 FAILED at 1097.
Hunk #9 FAILED at 1109.
9 out of 9 hunks FAILED -- saving rejects to file qeventdispatcher_mac.mm.rej

• Hi,

AFAIK, these patches are for Qt 5. You have to go through them and port them to Qt 4.