CtrlLib: Fixed WhenSel behaviour in TreeCtrl

git-svn-id: svn://ultimatepp.org/upp/trunk@6544 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-11-11 14:43:07 +00:00
parent a29771f740
commit efde1af062
2 changed files with 5 additions and 2 deletions

View file

@ -637,8 +637,8 @@ void TreeCtrl::SetCursorLine(int i, bool sc, bool sel, bool cb)
RefreshLine(cursor);
cursor = i;
RefreshLine(cursor);
if(m.ctrl && m.ctrl->SetWantFocus())
return;
if(m.ctrl)
m.ctrl->SetWantFocus();
if(cb) {
WhenCursor();
if(!multiselect) WhenSel();

View file

@ -502,6 +502,9 @@ void Ide::DebugMenu(Bar& menu)
menu.Add(!editfile.IsEmpty() /*&& !debuglock*/, AK_CLEARBREAKPOINTS, THISBACK(DebugClearBreakpoints))
.Help("Clear all breakpoints");
menu.Separator();
DDUMP(target.GetCount());
DDUMP(GetLogPath());
DDUMP(FileExists(GetLogPath()));
menu.Add(target.GetCount() && FileExists(GetLogPath()), AK_OPENLOG, THISBACK(OpenLog));
}