1
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:
David Rosca 2015-11-08 19:31:44 +01:00
parent 626bf8f4bb
commit 0e52711a07

View File

@ -56,6 +56,7 @@ void SideBar::setWidget(QWidget* widget)
delete m_layout->itemAt(1)->widget();
}
if (widget)
m_layout->addWidget(widget);
}