Commit 6f4dabe3 authored by Michael Büsch's avatar Michael Büsch

gui: Only allow checkboxes in byte width

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 4c51c0bb
......@@ -406,6 +406,15 @@ class State_Mem(StateWindow):
else:
db = None
if fmt == "cb":
# If checkboxes are selected with word or dword
# width, change to hex display.
if width != 8:
index = self.fmtCombo.findData("hex")
# This will re-trigger the "rebuild" slot.
self.fmtCombo.setCurrentIndex(index)
return
name, longName = AbstractDisplayWidget.addrspace2name[self.addrSpace]
width2suffix = {
8 : "B",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment