Fix potential endless recursion in PanelView::event() handler

Review Request #124375 - Created July 16, 2015 and submitted

Information
Daniel Vrátil
plasma-workspace
master
Reviewers
plasma

PanelView::event() generates new events for itself and dispatches them via QCoreApplication::sendEvent(), which calls the handler directly. This can lead to endless recursion. This patch changes the handler to use QCoreApplication::postEvent() instead to enqueue the new event and dispatch it from QEventLoop after the current PanelView::event() returns.

Downstream bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1226644


  
David Edmundson
David Edmundson
Daniel Vrátil
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 31b0bf7f199113c73873c451ad0d740072cbbda3 by Dan Vrátil to branch master.
Loading...