1
0
Fork 0

GUI: Enhancement editing expression in watch view #2308

This commit is contained in:
morsisko 2020-10-20 00:14:41 +02:00 committed by Duncan Ogilvie
parent d422af7dd4
commit d9c392d518
1 changed files with 2 additions and 1 deletions

View File

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