MCPcopy Create free account
hub / github.com/Vector35/debugger / freeDebuggerConsoleForView

Method freeDebuggerConsoleForView

ui/threadframes.cpp:772–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770
771
772void GlobalThreadFramesContainer::freeDebuggerConsoleForView(QObject* obj)
773{
774 // A old-style cast must be used here since qobject_cast will fail because
775 // the object is on the brink of deletion.
776 auto* vf = (ViewFrame*)obj;
777
778 // Confirm there is a record of this view.
779 if (!m_consoleMap.count(vf))
780 {
781 LogWarn("Attempted to free DebuggerConsole for untracked view %p", obj);
782 return;
783 }
784
785 auto* console = m_consoleMap[vf];
786 m_consoleStack->removeWidget(console);
787 m_consoleMap.remove(vf);
788
789 // Must be called so the ChatBox is guaranteed to be destoryed. If two
790 // instances for the same view/database exist, things will break.
791 console->deleteLater();
792}
793
794
795void GlobalThreadFramesContainer::notifyViewChanged(ViewFrame* frame)

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected