Fix crash when moving a panel from a screen to another

Remember to always set the object scope when connecting to a lambda
slot, otherwise things go a bit crazy.
wilder-5.14
Aleix Pol 12 years ago
parent 566122b977
commit 4e0d99c6e9
  1. 2
      shell/panelconfigview.cpp

@ -47,7 +47,7 @@ PanelConfigView::PanelConfigView(Plasma::Containment *containment, PanelView *pa
m_visibilityMode = panelView->visibilityMode();
panelView->setVisibilityMode(PanelView::WindowsGoBelow);
setScreen(panelView->screen());
connect(panelView, &QWindow::screenChanged,
connect(panelView, &QWindow::screenChanged, this,
[=](QScreen *screen) {
setScreen(screen);
syncGeometry();

Loading…
Cancel
Save