forked from qt-creator/qt-creator
Initialize correct member. Fixes potential crash on startup.
Task-number: QTCREATORBUG-2454
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user