QtGui/Windows: Fix restoring of changed cursor in restoreOverrideCursor()

Unconditionally apply window cursors restoreOverrideCursor() also for
platforms with override cursor capability in case
a cursor was changed while the override cursor was active.
Amends b05d1c2ebf.

Task-number: QTBUG-65001
Change-Id: I7fd38a27dcf045f2fb48a16abb484342feaab5df
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Friedemann Kleint 2018-01-02 10:49:24 +01:00
parent 52b85212a2
commit 15adf3a652

View File

@ -3659,8 +3659,7 @@ void QGuiApplication::restoreOverrideCursor()
} else {
if (QPlatformCursor::capabilities().testFlag(QPlatformCursor::OverrideCursor))
clearOverrideCursor(QGuiApplicationPrivate::screen_list);
else
applyWindowCursor(QGuiApplicationPrivate::window_list);
applyWindowCursor(QGuiApplicationPrivate::window_list);
}
}
#endif// QT_NO_CURSOR