Guard against null Group in EffectWindow::group()
Closed windows don't belong to any group. BUG: 476827
This commit is contained in:
parent
3875096d62
commit
1f32d01a49
1 changed files with 3 additions and 3 deletions
|
@ -213,10 +213,10 @@ void EffectWindow::addLayerRepaint(const QRect &r)
|
|||
|
||||
const EffectWindowGroup *EffectWindow::group() const
|
||||
{
|
||||
if (auto c = qobject_cast<X11Window *>(d->m_window)) {
|
||||
return c->group()->effectGroup();
|
||||
if (Group *group = d->m_window->group()) {
|
||||
return group->effectGroup();
|
||||
}
|
||||
return nullptr; // TODO
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void EffectWindow::refWindow()
|
||||
|
|
Loading…
Reference in a new issue