forked from qt-creator/qt-creator
BaseTextMark: Use (explicit) two phase initilization
Fixes a bug where the text in the bookmarks view is missing on initial adding a bookmark. Change-Id: Iefbf05e6124c0b4e911aa8d67beaa82ceeac8e21 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -999,7 +999,9 @@ void CallgrindToolPrivate::createTextMarks()
|
||||
continue;
|
||||
locations << location;
|
||||
|
||||
m_textMarks.append(new CallgrindTextMark(index, fileName, lineNumber));
|
||||
CallgrindTextMark *mark = new CallgrindTextMark(index, fileName, lineNumber);
|
||||
mark->init();
|
||||
m_textMarks.append(mark);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user