aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2014-01-02 18:46:42 +0100
committerEike Ziller <eike.ziller@digia.com>2014-01-10 11:54:11 +0100
commit1ff3a8287d7f830de362d49b4042544c6af3a754 (patch)
tree87076a2f1c98869f262564439f6f080b89b7dccc /src
parent7eb87cea1bd3d9bdd68eb0b45d977d3c53486da8 (diff)
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 <eike.ziller@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index 1f0f8c956d..e1f4e8a878 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<int, QByteArray> roleNames;
roleNames[Name] = "name";