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