https://bugs.kde.org/show_bug.cgi?id=402686

Boudewijn Rempt <b...@valdyas.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b...@valdyas.org
         Resolution|---                         |UPSTREAM
             Status|REPORTED                    |RESOLVED

--- Comment #1 from Boudewijn Rempt <b...@valdyas.org> ---
This crash cannot happen with that combination of Qt and Krita. There must be
something wrong with the tarball the fedora package uses or something like
that. The 4.1.7.101 tarball explicitly works around a dumb bug in Qt 5.11.3 and
5.12 that causes a double deletion. We have a workaround, it is in 4.1.7.101.

// See https://bugreports.qt.io/browse/QTBUG-72488    
#if QT_VERSION < QT_VERSION_CHECK(5, 11, 3)
    if ((event->type() == QEvent::MouseMove ||
         event->type() == QEvent::TabletMove) &&
            (!d->matcher.supportsHiResInputEvents() ||
             d->testingCompressBrushEvents)) {

        d->compressedMoveEvent.reset(new Event(*event));
        d->moveEventCompressor.start();

        /**
         * On Linux Qt eats the rest of unneeded events if we
         * ignore the first of the chunk of tablet events. So
         * generally we should never activate this feature. Only
         * for testing purposes!
         */
        if (d->testingAcceptCompressedTabletEvents) {
            event->setAccepted(true);
        }

        retval = true;
    } else {
#endif
        slotCompressedMoveEvent();
        retval = d->handleCompressedTabletEvent(event);
#if QT_VERSION < QT_VERSION_CHECK(5, 11, 3)
    }
#endif

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to