]> git.siccegge.de Git - frida/frida.git/commitdiff
Make "Add Function" generally available
authorChristoph Egger <Christoph.Egger@fau.de>
Wed, 4 Mar 2015 14:17:50 +0000 (15:17 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Wed, 4 Mar 2015 14:17:50 +0000 (15:17 +0100)
Allows to create new Functions even if point is over an existing
function

src/gui/Mainwindow.cxx

index fe48f8fd38cb4d0af385844466fc7e1921d5c22a..a15aa66eb299da46b1f5a3da3735fa9c95849813 100644 (file)
@@ -133,10 +133,11 @@ void Mainwindow::showListContextMenu(const QPoint& point) {
        if (item) {
                QAction * act = menu.addAction("Rename Function");
                connect(act, &QAction::triggered, [=]() {this->renameFunction(objects_list[item]->getFunction());});
-       } else {
-               QAction * act = menu.addAction("AddFunction");
-               connect(act, SIGNAL(triggered()), this, SLOT(requestNewFunction()));
        }
+
+       QAction * act = menu.addAction("AddFunction");
+       connect(act, SIGNAL(triggered()), this, SLOT(requestNewFunction()));
+
        menu.exec(listWidget->mapToGlobal(point));
 }