1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 15:33:34 -04:00

freqdisplay: fix crash on exit transparent mode by using deleteLater()

Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/9fb3e940-7f8e-46a9-8095-5ebc03428c00

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-19 10:16:13 +00:00
committed by GitHub
parent eabd3e605d
commit ff06cf1935
@@ -569,7 +569,13 @@ void FreqDisplayGUI::applyTransparency()
{
if (m_overlay)
{
delete m_overlay;
// Hide immediately so the overlay disappears at once, then schedule
// deletion for after the current event-loop iteration. Plain delete
// would crash here because onExitTransparentMode() is invoked via a
// signal emitted from inside the overlay's contextMenuEvent(), which
// is still on the call stack when we reach this point.
m_overlay->hide();
m_overlay->deleteLater();
m_overlay = nullptr;
}
show();