diff options
author | Daniel Teske <daniel.teske@nokia.com> | 2012-05-02 14:33:28 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@nokia.com> | 2012-05-03 12:58:26 +0200 |
commit | d9a5385aa55892c171dea333989e086b8e526008 (patch) | |
tree | 3d71a1a433d8a592634dc71b310e1bbb4e5eccef /src/plugins/projectexplorer/taskhub.cpp | |
parent | 8b37921bc567163c827b695c6641b57db0a77ccf (diff) | |
download | qt-creator-d9a5385aa55892c171dea333989e086b8e526008.tar.gz |
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>
Diffstat (limited to 'src/plugins/projectexplorer/taskhub.cpp')
-rw-r--r-- | src/plugins/projectexplorer/taskhub.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/taskhub.cpp b/src/plugins/projectexplorer/taskhub.cpp index 1223b46b20..a7fdde564a 100644 --- a/src/plugins/projectexplorer/taskhub.cpp +++ b/src/plugins/projectexplorer/taskhub.cpp @@ -114,6 +114,7 @@ void TaskHub::addTask(Task task) TaskMark *mark = new TaskMark(task.taskId, task.file.toString(), task.line, visible); mark->setIcon(taskTypeIcon(task.type)); mark->setPriority(TextEditor::ITextMark::LowPriority); + mark->init(); task.addMark(mark); } emit taskAdded(task); |