1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +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,7 +56,8 @@ void SideBar::setWidget(QWidget* widget)
delete m_layout->itemAt(1)->widget();
}
m_layout->addWidget(widget);
if (widget)
m_layout->addWidget(widget);
}
void SideBar::showBookmarks()