Bazaar/XMLMenu : on custom command send command string instead of id

git-svn-id: svn://ultimatepp.org/upp/trunk@4250 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2011-12-05 09:13:50 +00:00
parent ac5b0c74ba
commit 5bef2c18a1

View file

@ -486,7 +486,7 @@ template<class T> void WithXMLMenu<T>::SetToolBar0(Bar &bar, int tbIdx, Array<XM
bool isCustom = cmd.GetIsCustom();
Callback handler;
if(isCustom)
handler = THISBACK1(callUserHandler, id);
handler = THISBACK1(callUserHandler, cmd.GetCommandString());
else
handler = cmd.GetCallback();