forked from qt-creator/qt-creator
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: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user