MouseWentUp gets called multiple times

Added by Bert Cuypers over 6 years ago

Hi all,

I have a gridlayout with one WTreeView (which is connected to a WStandardItemModel) and one WTableView (which is connected to a custom model which is derived from the WAbstractItemModel class). When performing a right mouse click on one of the WTreeView items, the mouseWentUp signal gets called twice, causing my WPopupMenu to get immediately closed (similar to bug #5900).

On the first (real) click, the mouseWentUp signal includes a WModelIndex which is correct. On the second (false) click, the signal does include a NULL WModelIndex. Do you have any idea why this happens?

Thanks in advance!

Best regards