From ddaf44a6df4f6abd3eebbb07b44dba55596ca33c Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 20 Aug 2019 17:32:23 +0200 Subject: Make program and memory window visible when address requested from symbol dialog. Signed-off-by: Pavel Pisa --- qtmips_gui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qtmips_gui') diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp index a344fc6..c78deb8 100644 --- a/qtmips_gui/mainwindow.cpp +++ b/qtmips_gui/mainwindow.cpp @@ -389,8 +389,12 @@ void MainWindow::show_symbol_dialog(){ delete symnames; connect(gotosyboldialog, SIGNAL(program_focus_addr(std::uint32_t)), program, SIGNAL(focus_addr_with_save(std::uint32_t))); + connect(gotosyboldialog, SIGNAL(program_focus_addr(std::uint32_t)), + this, SLOT(show_program())); connect(gotosyboldialog, SIGNAL(memory_focus_addr(std::uint32_t)), memory, SIGNAL(focus_addr(std::uint32_t))); + connect(gotosyboldialog, SIGNAL(memory_focus_addr(std::uint32_t)), + this, SLOT(show_memory())); connect(gotosyboldialog, SIGNAL(obtain_value_for_name(std::uint32_t&,QString)), machine->symbol_table(), SLOT(name_to_value(std::uint32_t&,QString))); gotosyboldialog->setAttribute(Qt::WA_DeleteOnClose); -- cgit v1.2.3