From 2e1ede5016987ec04e558e20cb72b8f45d70686b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 4 Feb 2021 10:24:45 +0100 Subject: [PATCH] Adding error icons in the memory viewer's messages --- sources/Debugger/MemoryViewer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/Debugger/MemoryViewer.cpp b/sources/Debugger/MemoryViewer.cpp index fa6e760..4273c47 100644 --- a/sources/Debugger/MemoryViewer.cpp +++ b/sources/Debugger/MemoryViewer.cpp @@ -150,6 +150,7 @@ namespace ComSquare::Debugger value = this->switchToAddrTab(value); } catch (const InvalidAddress &) { QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Critical); msgBox.setText("This address is not mapped. Reading it will result in OpenBus."); msgBox.exec(); return; @@ -183,6 +184,7 @@ namespace ComSquare::Debugger addr = accessor->getRelativeAddress(addr); if (addr > accessor->getSize()) { QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Critical); msgBox.setText((std::string("The ") + accessor->getName() + " is too small to contain this address.").c_str()); msgBox.exec(); return 0;