Commit e17fb8ff authored by hjk's avatar hjk
Browse files

Fix crash in insertSideBarWidget



Change-Id: I7c35fe859b0364a7cd9cc5c4be6af60ab27cde17
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 58feec49
......@@ -203,7 +203,8 @@ SideBarItem *SideBar::item(const QString &id)
Internal::SideBarWidget *SideBar::insertSideBarWidget(int position, const QString &id)
{
d->m_widgets.at(0)->setCloseIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
if (!d->m_widgets.isEmpty())
d->m_widgets.at(0)->setCloseIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
Internal::SideBarWidget *item = new Internal::SideBarWidget(this, id);
connect(item, SIGNAL(splitMe()), this, SLOT(splitSubWidget()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment