From 8e0537e27bab329809b89846798227575f3581b7 Mon Sep 17 00:00:00 2001
From: Johannes Kung <johku144@student.liu.se>
Date: Thu, 4 Jul 2024 16:03:40 +0200
Subject: [PATCH] Fix bug where program crashes after undoing too many asm
 instructions

---
 src/simudator/gui/processor_handler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/simudator/gui/processor_handler.py b/src/simudator/gui/processor_handler.py
index 91612fd..9a9e9b3 100644
--- a/src/simudator/gui/processor_handler.py
+++ b/src/simudator/gui/processor_handler.py
@@ -310,7 +310,7 @@ class ProcessorHandler(QObject):
             self._processor.undo_asm_instruction(instructions)
             self._signal_processor_changed()
         except (ValueError, IndexError):
-            self._error_msg_box("Unable to undo the instruction.")
+            self._error_msg_box.showMessage("Unable to undo the instruction.")
 
     @Slot()
     def toggle_value_update_on_run(self):
-- 
GitLab