diff options
author | Christian Stenger <christian.stenger@qt.io> | 2020-01-14 10:57:05 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-01-16 14:54:10 +0000 |
commit | 938068d1e8cb83e8bdf06e6ac002f75008646ad7 (patch) | |
tree | 1b6de5472e5bdca35cfbc0b569fe786cbac6cdfb /src/plugins/welcome | |
parent | 38cd7b1aa078d35262dbe19f70ef6afbe6538e6e (diff) |
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>
Diffstat (limited to 'src/plugins/welcome')
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 93dcec3d0e6..ecd0022729d 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -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); |