QCocoaMenu: Stop update timer

This amends patch f27d1ccbb2.

Change-Id: I4c7a390a5f2cdd3307007c7b6708692c36f861b4
Task-number: QTBUG-62396
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Gabriel de Dietrich 2017-08-28 20:38:20 +07:00 committed by Tor Arne Vestbø
parent ea168ead1a
commit 48784486a3

View File

@ -427,6 +427,7 @@ void QCocoaMenu::scheduleUpdate()
void QCocoaMenu::timerEvent(QTimerEvent *e)
{
if (e->timerId() == m_updateTimer) {
killTimer(m_updateTimer);
m_updateTimer = 0;
[m_nativeMenu update];
}