Skip to content

Commit df2e692

Browse files
committed
Merge pull request #4519
e3496da [Qt] Fix No such slot UnitDisplayStatusBarControl::onDisplayUnitsClicked (Cozz Lovan)
2 parents 29ef389 + e3496da commit df2e692

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ UnitDisplayStatusBarControl::UnitDisplayStatusBarControl():QLabel()
10121012
setToolTip(tr("Unit to show amounts in. Click to select another unit."));
10131013
}
10141014

1015-
/** So that it responds to left-button clicks */
1015+
/** So that it responds to button clicks */
10161016
void UnitDisplayStatusBarControl::mousePressEvent(QMouseEvent *event)
10171017
{
10181018
onDisplayUnitsClicked(event->pos());
@@ -1029,10 +1029,6 @@ void UnitDisplayStatusBarControl::createContextMenu()
10291029
menu->addAction(menuAction);
10301030
}
10311031
connect(menu,SIGNAL(triggered(QAction*)),this,SLOT(onMenuSelection(QAction*)));
1032-
1033-
// what happens on right click.
1034-
setContextMenuPolicy(Qt::CustomContextMenu);
1035-
connect(this,SIGNAL(customContextMenuRequested(const QPoint&)),this,SLOT(onDisplayUnitsClicked(const QPoint&)));
10361032
}
10371033

10381034
/** Lets the control know about the Options Model (and its signals) */

0 commit comments

Comments
 (0)