Hey,

2011/6/18 cypherpu <[email protected]>:
> I am using a WMenu with my own itemSelected signal callback. I can select

To be clear, you are listening to the WMenu's itemSelected() signal
but are not seeing all the menu changes ?

> different items from my WMenu correctly. However, when I use the browser 
> "back"
> button, my item selection is not updated. I inherited my own MyWMenu from 
> WMenu,
> and can confirm that internalPathChanged is being called (of course, I then 
> call
> WMenu::internalPathChanged). I looked at WMenu.C, and saw
>
> void WMenu::itemPathChanged(WMenuItem *item)
> {
>  if (internalPathEnabled_) {
>    WApplication *app = wApp;
>
>    if (app->internalPathMatches(basePath_ + item->pathComponent()))
>      select(indexOf(item), false);
>  }
> }
>
> Should the last line be
>
>      select(indexOf(item), true);

Not really, because you do not need to reset the internal path
according to the selected menu item, if the selected menu item was set
according to an internal path change.

I guess the best way to help you is you provide an example test case
that illustrates what you think goes wrong ?

Regards,
koen

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to