1
0
Fork 0

Merge pull request #3231 from torusrxxx/torusrxxx-patch-1

Fix QObject::connect: No such slot SourceView::followDisassemblerSlot()
This commit is contained in:
Duncan Ogilvie 2023-10-05 13:26:56 +02:00 committed by GitHub
commit 3e1b3d61bc
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -27,8 +27,8 @@ SourceView::SourceView(QString path, duint addr, QWidget* parent)
setupContextMenu();
connect(this, SIGNAL(contextMenuSignal(QPoint)), this, SLOT(contextMenuSlot(QPoint)));
connect(this, SIGNAL(doubleClickedSignal()), this, SLOT(followDisassemblerSlot()));
connect(this, SIGNAL(enterPressedSignal()), this, SLOT(followDisassemblerSlot()));
connect(this, SIGNAL(doubleClickedSignal()), mCommonActions, SLOT(followDisassemblySlot()));
connect(this, SIGNAL(enterPressedSignal()), mCommonActions, SLOT(followDisassemblySlot()));
connect(Bridge::getBridge(), SIGNAL(updateDisassembly()), this, SLOT(reloadData()));
Initialize();

View File

@ -48,7 +48,6 @@ void SourceViewerManager::loadSourceFile(QString path, duint addr)
if(idx != -1)
title = path.mid(idx + 1);
SourceView* newView = new SourceView(path, addr, this);
connect(newView, SIGNAL(showCpu()), this, SIGNAL(showCpu()));
addTab(newView, title);
setCurrentIndex(count() - 1);
// https://forum.qt.io/post/132664