Disconnect Workspace::outputsChanged from InputPanelV1Window when it's closed

Otherwise the input panel window can be repositioned after it's closed,
which will crash.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent 0ce58c7cbf
commit 886f0e852b
  1. 2
      src/inputpanelv1window.cpp

@ -78,6 +78,7 @@ void InputPanelV1Window::hide()
void InputPanelV1Window::reposition()
{
Q_ASSERT(!isDeleted());
if (!readyForPainting()) {
return;
}
@ -164,6 +165,7 @@ void InputPanelV1Window::destroyWindow()
{
m_panelSurface->disconnect(this);
m_panelSurface->surface()->disconnect(this);
disconnect(workspace(), &Workspace::outputsChanged, this, &InputPanelV1Window::reposition);
markAsDeleted();

Loading…
Cancel
Save