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>
This commit is contained in:
Thomas Hartmann
2014-01-02 18:46:42 +01:00
committed by Eike Ziller
parent 7eb87cea1b
commit 1ff3a8287d

View File

@@ -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";