MCPcopy Create free account
hub / github.com/KDE/kdevelop / ~KeepAliveWidget

Method ~KeepAliveWidget

kdevplatform/shell/ktexteditorpluginintegration.cpp:271–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269};
270
271KeepAliveWidget::~KeepAliveWidget()
272{
273 // if the container is still valid, unparent it to prevent it from getting deleted
274 // this happens when the user removes a tool view
275 // on shutdown, the container does get deleted, thus we must guard against that.
276 if (m_factory->container()) {
277 Q_ASSERT(m_factory->container()->parentWidget() == this);
278 m_factory->container()->setParent(nullptr);
279 }
280}
281
282namespace LspPlugin {
283/**

Callers

nothing calls this directly

Calls 1

setParentMethod · 0.45

Tested by

no test coverage detected