m_ghost was parented to the view, so Qt parent-child cleanup could destroy it when a view was replaced. The raw pointer remained non-null, causing a double-free on the next viewChanged signal. Fix by using QPointer<OllieGhostProvider> which auto-nulls on destroy. Also replace qobject_cast with dynamic_cast for KF5 KTextEditor interfaces to avoid crashes when qt_metacast accesses uninitialized KateViewConfig during early view activation. |
||
|---|---|---|
| .. | ||
| metadata.json | ||
| ollie_ghost.cpp | ||
| ollie_ghost.h | ||
| ollie_kate.cpp | ||
| ollie_kate.h | ||