mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-30 00:35:25 +00:00
Fix Shortcuts of DisassemblyContextMenu (#1510)
This commit is contained in:
parent
d6bb0c0446
commit
37cb9b5278
@ -865,6 +865,7 @@ QAction *DisassemblyContextMenu::addAnonymousAction(QString name, const char *sl
|
|||||||
void DisassemblyContextMenu::initAction(QAction *action, QString name, const char *slot)
|
void DisassemblyContextMenu::initAction(QAction *action, QString name, const char *slot)
|
||||||
{
|
{
|
||||||
action->setParent(this);
|
action->setParent(this);
|
||||||
|
parentWidget()->addAction(action);
|
||||||
action->setText(name);
|
action->setText(name);
|
||||||
if (slot) {
|
if (slot) {
|
||||||
connect(action, SIGNAL(triggered(bool)), this, slot);
|
connect(action, SIGNAL(triggered(bool)), this, slot);
|
||||||
|
Loading…
Reference in New Issue
Block a user