Commit 8be49ba2 authored by Eike Ziller's avatar Eike Ziller

Options: Fix restoring last page for "delayed" created categories

E.g. when opening Designer > Forms, restarting Qt Creator and opening
options dialog again.

Change-Id: I0cfabed8c9e7ef8c98abab5490181223558e21a2
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent cf66d546
......@@ -365,6 +365,7 @@ void SettingsDialog::showPage(Id categoryId, Id pageId)
if (category->id == initialCategory) {
initialCategoryIndex = i;
if (initialPage.isValid()) {
ensureCategoryWidget(category);
for (int j = 0; j < category->pages.size(); ++j) {
IOptionsPage *page = category->pages.at(j);
if (page->id() == initialPage)
......
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