Skip to content

Commit

Permalink
[GUI] Reconnect CS owner address edit-label action
Browse files Browse the repository at this point in the history
This action connection was incorrectly commented out when switching to
the new QT5 `connect` syntax. Fix it now by using a simple lambda.
  • Loading branch information
Fuzzbawls committed May 3, 2020
1 parent 7fdf29f commit 32867b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/pivx/coldstakingwidget.cpp
Expand Up @@ -642,7 +642,7 @@ void ColdStakingWidget::handleAddressClicked(const QModelIndex &rIndex)
connect(this->menu, &TooltipMenu::message, this, &AddressesWidget::message);
connect(this->menu, &TooltipMenu::onEditClicked, this, &ColdStakingWidget::onEditClicked);
connect(this->menu, &TooltipMenu::onDeleteClicked, this, &ColdStakingWidget::onDeleteClicked);
//connect(this->menu, &TooltipMenu::onCopyClicked, this, &ColdStakingWidget::onLabelClicked);
connect(this->menu, &TooltipMenu::onCopyClicked, [this](){onLabelClicked();});
connect(this->menu, &TooltipMenu::onLastClicked, this, &ColdStakingWidget::onCopyOwnerClicked);
} else {
this->menu->hide();
Expand Down

0 comments on commit 32867b2

Please sign in to comment.