forked from qt-creator/qt-creator
SettingsDialog: Do not create widgets when looking for page with ID
For pages that are not delayed additionally by an OptionsPageProvider, we can just look for the ID without creating any widgets. Task-number: QTCREATORBUG-15848 Change-Id: I118aa4713e76c8a43df7abad9f846e68105c659e Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -460,7 +460,6 @@ void SettingsDialog::showPage(const Id pageId)
|
||||
for (int i = 0; i < categories.size(); ++i) {
|
||||
Category *category = categories.at(i);
|
||||
if (category->providers.isEmpty()) { // no providers
|
||||
ensureCategoryWidget(category);
|
||||
if (category->findPageById(initialPageId, &initialPageIndex)) {
|
||||
initialCategoryIndex = i;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user