Commit e9fd1a66 authored by Michael Abrahams's avatar Michael Abrahams

Fix crash on canvas right click

I could have sworn I fixed this already!
Closes T1025
parent b4dc2dd6
......@@ -160,13 +160,15 @@ bool KisInputManager::eventFilter(QObject* object, QEvent* event)
if (object != d->eventsReceiver) return false;
// If we have saved an event, take care of it now, horribly breaking encapsulation with eventEater
// If we have saved an event, take care of it now.
if (d->eventEater.savedEvent) {
auto savedEvent = d->eventEater.savedEvent;
d->eventEater.savedEvent = 0;
if (event->type() != QEvent::TabletPress) {
// Unless things are screwed up beyond hope, the old event was the real deal.
d->eventEater.savedEvent = 0;
delete savedEvent;
if (d->eventEater.eventFilter(object, event)) return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment