Skip to content
  • David Edmundson's avatar
    [panel] Fix crash on screen changes · fa2bafea
    David Edmundson authored
    There is an error handling path when we fetch the relevant config()
    
    ```
    KConfigGroup PanelView::panelConfig(...
    {
        if (!containment || !screen) {
            return KConfigGroup();
        }
    ```
    
    which we indiscrimiately call parent() on.
    
    This patch guards that case, which is presumably screen being
    temporarily null.
    
    This code is also Plasma 5.8 compatibility fallback, so arguably we
    could get rid of it.
    
    BUG: 425711
    fa2bafea