Merge pull request 'Fixes connect bug (via context menu) for custom nodes' (#56) from dsc/wowlet:connect-bug into master

Reviewed-on: https://git.wownero.com/wowlet/wowlet/pulls/56
This commit is contained in:
wowario 2021-05-03 07:09:14 +00:00
commit 06f09e1f2e
1 changed files with 1 additions and 6 deletions

View File

@ -80,12 +80,7 @@ void NodeWidget::showContextMenu(const QPoint &pos, const WowletNode &node) {
}
void NodeWidget::onContextConnect() {
QObject *obj = sender();
if (obj == ui->customView)
m_activeView = ui->customView;
else
m_activeView = ui->wsView;
//QObject *obj = sender();
WowletNode node = this->selectedNode();
if (!node.full.isEmpty())
emit connectToNode(node);