forked from qt-creator/qt-creator
Welcome: Fix logic for page order
If we want to rely on the priority for ordering the buttons of the welcome page we should also keep the order of the pages in sync with the buttons. Change-Id: Idcb06f18c6e7ea7c8fd19eac46c53abbed2b9dbd Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -413,7 +413,7 @@ void WelcomeMode::addPage(IWelcomePage *page)
|
||||
pageButton->setText(page->title());
|
||||
pageButton->setActiveChecker([this, pageId] { return m_activePage == pageId; });
|
||||
|
||||
m_pluginList.append(page);
|
||||
m_pluginList.insert(idx, page);
|
||||
m_pageButtons.append(pageButton);
|
||||
|
||||
m_sideBar->m_pluginButtons->insertWidget(idx, pageButton);
|
||||
|
Reference in New Issue
Block a user