1
0
Fork 0

GUI: Fix issue: editing expression using GUI changes the watch type back to uint

This commit is contained in:
morsisko 2020-10-30 23:35:59 +01:00 committed by Duncan Ogilvie
parent 0b603814a1
commit 4d14fffc2f
1 changed files with 2 additions and 1 deletions

View File

@ -249,8 +249,9 @@ void WatchView::editWatchSlot()
{
QString expr;
QString originalExpr = getCellContent(getInitialSelection(), ColExpr);
QString currentType = getCellContent(getInitialSelection(), ColType);
if(SimpleInputBox(this, tr("Enter the expression to watch"), originalExpr, expr, tr("Example: [EAX]")))
DbgCmdExecDirect(QString("SetWatchExpression ").append(getSelectedId()).append(",").append(expr));
DbgCmdExecDirect(QString("SetWatchExpression ").append(getSelectedId()).append(",").append(expr).append(",").append(currentType));
updateWatch();
}