diff options
author | Daniel Teske <[email protected]> | 2012-05-02 14:33:28 +0200 |
---|---|---|
committer | Daniel Teske <[email protected]> | 2012-05-03 12:58:26 +0200 |
commit | d9a5385aa55892c171dea333989e086b8e526008 (patch) | |
tree | 3d71a1a433d8a592634dc71b310e1bbb4e5eccef /src/plugins/valgrind/callgrindtool.cpp | |
parent | 8b37921bc567163c827b695c6641b57db0a77ccf (diff) |
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 <[email protected]>
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.cpp')
-rw-r--r-- | src/plugins/valgrind/callgrindtool.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index 7d0f18dbace..ae1d8379c5a 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -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); } } |