aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/todo
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/todo')
-rw-r--r--src/plugins/todo/todoitemsprovider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/todo/todoitemsprovider.cpp b/src/plugins/todo/todoitemsprovider.cpp
index d7a584179f..54a525cf7d 100644
--- a/src/plugins/todo/todoitemsprovider.cpp
+++ b/src/plugins/todo/todoitemsprovider.cpp
@@ -145,7 +145,7 @@ void TodoItemsProvider::setItemsListWithinStartupProject()
void TodoItemsProvider::setItemsListWithinSubproject()
{
// TODO prefer current editor as source of sub-project
- Node *node = ProjectTree::currentNode();
+ const Node *node = ProjectTree::findCurrentNode();
if (node) {
ProjectNode *projectNode = node->parentProjectNode();
if (projectNode) {