Commit b6eac08c authored by Thomas Hartmann's avatar Thomas Hartmann

Only insert SideBarWidget for existing id

Task-number: QTCREATORBUG-12974
Change-Id: I69cacab32de0454a78c5a67edcc7dcbbdcb12784
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 95182687
......@@ -287,7 +287,8 @@ void SideBar::readSettings(QSettings *settings, const QString &name)
QStringList views = settings->value(viewsKey).toStringList();
if (views.count()) {
foreach (const QString &id, views)
insertSideBarWidget(d->m_widgets.count(), id);
if (availableItemIds().contains(id))
insertSideBarWidget(d->m_widgets.count(), id);
} else {
insertSideBarWidget(0);
......
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