diff --git a/src/widgets/FunctionsWidget.cpp b/src/widgets/FunctionsWidget.cpp index 10d325fc..c872174b 100644 --- a/src/widgets/FunctionsWidget.cpp +++ b/src/widgets/FunctionsWidget.cpp @@ -533,7 +533,7 @@ FunctionsWidget::FunctionsWidget(MainWindow *main) itemConextMenu->addAction(&actionUndefine); itemConextMenu->setWholeFunction(true); - addActions(itemConextMenu->actions()); + ui->treeView->addActions(itemConextMenu->actions()); // Use a custom context menu on the dock title bar if (Config()->getFunctionsWidgetLayout() == "horizontal") {