diff --git a/src/widgets/FunctionsWidget.cpp b/src/widgets/FunctionsWidget.cpp index 3897a31a8..c872174b3 100644 --- a/src/widgets/FunctionsWidget.cpp +++ b/src/widgets/FunctionsWidget.cpp @@ -487,7 +487,7 @@ bool FunctionSortFilterProxyModel::lessThan(const QModelIndex &left, const QMode FunctionsWidget::FunctionsWidget(MainWindow *main) : ListDockWidget(main), - actionRename(tr("Rename"), this->ui->treeView), + actionRename(tr("Rename"), this), actionUndefine(tr("Undefine"), this), actionHorizontal(tr("Horizontal"), this), actionVertical(tr("Vertical"), this) @@ -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") {