Commit 19abd0f2 authored by Daniel Molkentin's avatar Daniel Molkentin

Initialize correct member. Fixes potential crash on startup.

Task-number: QTCREATORBUG-2454
parent fa15d41d
......@@ -459,7 +459,7 @@ void GettingStartedWelcomePageWidget::showFeature(int feature)
{
if (feature == -1) {
srand(QDateTime::currentDateTime().toTime_t());
m_currentTip = rand()%m_featuredItems.count();
m_currentFeature = rand()%m_featuredItems.count();
}
RssItem item = m_featuredItems.at(m_currentFeature);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment