Welcome: Fix regression of displaying Projects by default

Latest refactorings made the Welcome page display by default
the list of projects instead of the examples page.
This patch amends 938068d1e8.

Change-Id: Ie91f16e4fc7e891a34476d23c3e1b370fd7a7d68
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2020-01-28 09:09:37 +01:00
parent 9a1135776d
commit 99ef26579a

View File

@@ -414,7 +414,7 @@ void WelcomeMode::addPage(IWelcomePage *page)
pageButton->setActiveChecker([this, pageId] { return m_activePage == pageId; }); pageButton->setActiveChecker([this, pageId] { return m_activePage == pageId; });
m_pluginList.insert(idx, page); m_pluginList.insert(idx, page);
m_pageButtons.append(pageButton); m_pageButtons.insert(idx, pageButton);
m_sideBar->m_pluginButtons->insertWidget(idx, pageButton); m_sideBar->m_pluginButtons->insertWidget(idx, pageButton);