Fix Shortcuts of DisassemblyContextMenu (#1510)

This commit is contained in:
Florian Märkl 2019-05-09 14:59:18 +02:00 committed by GitHub
parent d6bb0c0446
commit 37cb9b5278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);