Commit 93011385 authored by Ulf Hermann's avatar Ulf Hermann Committed by hjk

SettingsDialog: Unknown settings pages aren't a fatal condition.

Whenever you remove a plugin with a settings page you will eventually
run into this. We can silently ignore it.

Change-Id: I887d7e7d21e1e2f68375b60456160f9998f9c650
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 11f6cc7c
......@@ -397,8 +397,8 @@ void SettingsDialog::showPage(const Id pageId)
}
}
QTC_ASSERT(!initialPageId.isValid() || initialPageIndex != -1,
qDebug("Unknown page: %s", initialPageId.name().constData()));
if (initialPageId.isValid() && initialPageIndex == -1)
return; // Unknown settings page, probably due to missing plugin.
if (initialCategoryIndex != -1) {
const QModelIndex modelIndex = m_proxyModel->mapFromSource(m_model->index(initialCategoryIndex));
......
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