Commit 888b49df authored by Cyril Deguet's avatar Cyril Deguet

* x11_loop.cpp: check if there is a theme before getting the window manager!

    (avoid a segfault when there is no theme at the beginning)
parent d1c5e760
...@@ -158,7 +158,11 @@ void X11Loop::handleX11Event() ...@@ -158,7 +158,11 @@ void X11Loop::handleX11Event()
{ {
// When the "parent" window is mapped, show all the visible // When the "parent" window is mapped, show all the visible
// windows, as it is not automatic, unfortunately // windows, as it is not automatic, unfortunately
getIntf()->p_sys->p_theme->getWindowManager().synchVisibility(); Theme *pTheme = getIntf()->p_sys->p_theme;
if( pTheme )
{
pTheme->getWindowManager().synchVisibility();
}
} }
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment