Hey Joseph, 2010/3/17 Joseph VanAndel <[email protected]>: > Using Wt 3.1.1b on Mac OS 10.6.2, I'm creating a popup menu. > in the event handler, fileMenu_->result() returns 0. > > I'm fairly certain this used to work. > > Should I have a separate event handler for each menu item, rather than > relying on the return value from WPopupMenu::result() ?
This seems indeed like a bug. As a temporary workaround, you can use sender() to identify the WPopupMenuItem that is the result() in your slot function. I have already fixed this in my development branch. Alternatively, you can listen to the WPopupMenu::aboutToHide() signal, from which you can read the result(). This is the best approach if you want to handle all items from a single slot. Regards, koen ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
