Initialize correct member. Fixes potential crash on startup.

Task-number: QTCREATORBUG-2454
This commit is contained in:
Daniel Molkentin
2010-09-25 08:52:28 +02:00
parent fa15d41d01
commit 19abd0f2d3

View File

@@ -459,7 +459,7 @@ void GettingStartedWelcomePageWidget::showFeature(int feature)
{ {
if (feature == -1) { if (feature == -1) {
srand(QDateTime::currentDateTime().toTime_t()); srand(QDateTime::currentDateTime().toTime_t());
m_currentTip = rand()%m_featuredItems.count(); m_currentFeature = rand()%m_featuredItems.count();
} }
RssItem item = m_featuredItems.at(m_currentFeature); RssItem item = m_featuredItems.at(m_currentFeature);