mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-20 14:17:04 -06:00
ide/Debuggers/Gdb_MI2 : fixed explorer editfield handling
git-svn-id: svn://ultimatepp.org/upp/trunk@4548 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8348903449
commit
fbe9e215ee
1 changed files with 11 additions and 0 deletions
|
|
@ -1117,6 +1117,11 @@ bool Gdb_MI2::Key(dword key, int count)
|
|||
f->Key(key, count);
|
||||
return true;
|
||||
}
|
||||
if(key == K_ENTER && explorerExprEdit.HasFocus())
|
||||
{
|
||||
onExploreExpr();
|
||||
return true;
|
||||
}
|
||||
return Ctrl::Key(key, count);
|
||||
}
|
||||
|
||||
|
|
@ -1245,7 +1250,12 @@ void Gdb_MI2::doExplore(String const &expr, String var, bool isChild, bool appen
|
|||
{
|
||||
MIValue v = MICmd("var-create - @ \"" + expr + "\"");
|
||||
if(v.IsEmpty() || v.IsError())
|
||||
{
|
||||
explorer.Clear();
|
||||
explorerChildVars.Clear();
|
||||
explorer.Add(expr, "<can't evaluate>");
|
||||
return;
|
||||
}
|
||||
var = v["name"];
|
||||
}
|
||||
else
|
||||
|
|
@ -1330,6 +1340,7 @@ void Gdb_MI2::onExploreExpr(ArrayCtrl *what)
|
|||
// we use the expression editbox
|
||||
expr = ~explorerExprEdit;
|
||||
}
|
||||
else
|
||||
{
|
||||
// otherwise, we use the expression from sending ArrayCtrl
|
||||
int line = what->GetCursor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue