GUI: Enhancement editing expression in watch view #2308
This commit is contained in:
parent
d422af7dd4
commit
d9c392d518
|
@ -248,7 +248,8 @@ void WatchView::modifyWatchSlot()
|
||||||
void WatchView::editWatchSlot()
|
void WatchView::editWatchSlot()
|
||||||
{
|
{
|
||||||
QString expr;
|
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));
|
DbgCmdExecDirect(QString("SetWatchExpression ").append(getSelectedId()).append(",").append(expr));
|
||||||
updateWatch();
|
updateWatch();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue