aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/mainwindow.cpp')
-rw-r--r--qtmips_gui/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index a286f0d..65e6469 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -81,7 +81,10 @@ void MainWindow::create_core(machine::MachineConfig *config) {
// Create machine
machine = new machine::QtMipsMachine(config);
// Create machine view
+ if (corescene != nullptr)
+ delete corescene;
corescene = new CoreViewScene(coreview, machine);
+ coreview->setScene(corescene);
set_speed(); // Update machine speed to current settings