From 1ff3a8287d7f830de362d49b4042544c6af3a754 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 2 Jan 2014 18:46:42 +0100 Subject: [PATCH] WelcomPage: Fix intitial filtering by Qt version When having multiple Qt versions with examples registered in Creator, the welcome mode showed all of them initially. The reason was that m_uniqueQtId was initialized with noQtVersionsId instead of uniqueQtVersionIdSetting(). The function uniqueQtVersionIdSetting() gets the correct Qt version from the settings as shown in the combobox. Task-number: QTCREATORBUG-10790 Change-Id: I9f435f6372f8b0c0495daf6c6efcf4bcc5e70455 Reviewed-by: Eike Ziller --- src/plugins/qtsupport/exampleslistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 1f0f8c956d1..e1f4e8a8784 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -174,7 +174,7 @@ public slots: ExamplesListModel::ExamplesListModel(QObject *parent) : QAbstractListModel(parent), - m_uniqueQtId(noQtVersionsId) + m_uniqueQtId(uniqueQtVersionIdSetting()) { QHash roleNames; roleNames[Name] = "name";