Merge pull request #15087 from escape209/work

MemoryWidget: Ignore Hex checkbox if Float or Double selected
This commit is contained in:
Jordan Woyak authored and GitHub committed 2026-12-04 19:14:21 -06:00
commit c7787c1330
1 file changed
+2 -1
@@ -666,7 +666,8 @@ void MemoryWidget::ValidateAndPreviewInputValue()
if (input_text.startsWith(QStringLiteral("0x"), Qt::CaseInsensitive))
input_text.remove(0, 2);
}
else if (m_base_check->isChecked())
else if (m_base_check->isChecked() &&
!(input_type == Type::Float32 || input_type == Type::Double))
{
// Add 0x to the front of the input (after the '-', if present), but only if the user didn't
// already do so.