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

--- Comment #4 from Christoph Cullmann <[email protected]> ---
Hmm, tried to create a mime data object that is not coupled to the tooltip text
document, that didn't help, I still get the same crash even with


    QMimeData *createMimeDataFromSelection() const override
    {
        printf("humpppp\n");

        // the default produced mime data will not survive our early delete of
the tooltip, see bug 521151
        // duplicate the data
        std::unique_ptr<QMimeData>
original(QTextBrowser::createMimeDataFromSelection());

        // our copy will have no reference to the QTextDocument
        QMimeData *copy = new QMimeData();
        if (original->hasText()) {
            copy->setText(original->text());
        }
        if (original->hasHtml()) {
            copy->setHtml(original->html());
        }
        return copy;
    }


in TooltipPrivate

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

Reply via email to