WMenu itemSelected not getting called for first menu item
Added by Stas Magill over 9 years ago
Hi,
I have a Wt application using Wt 3.3.4 (though this also goes wrong for Wt 3.3.3) in which I create a WMenu, enable internal paths, add it into a layout and only then try to add the menu items. This generally appears to work except that itemSelected signal does not get called when the very first item in the menu gets displayed after doing a refresh. The signal gets called fine for any other items. The signal also works if I add the menu items immediately after creating the WMenu. It only seems to go wrong if I add the WMenu to a layout first and add the items later. I have attached a simplified app that demonstrates the problem.
Does anyone have any suggestions for why this might be going wrong and how to get around it?
Thanks,
Stas.
WtMenuStackApp.h (2.05 KB) WtMenuStackApp.h |