Skip to content

Commit

Permalink
Alternative approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
karliss committed Oct 28, 2024
1 parent e18756c commit eb1387e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/FunctionsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit eb1387e

Please sign in to comment.