mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
SideBar: Don't try to add null widget to layout
This commit is contained in:
parent
626bf8f4bb
commit
0e52711a07
@ -56,6 +56,7 @@ void SideBar::setWidget(QWidget* widget)
|
||||
delete m_layout->itemAt(1)->widget();
|
||||
}
|
||||
|
||||
if (widget)
|
||||
m_layout->addWidget(widget);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user