Actions
Bug #5900
openContext menu disappears in treeview-dragdrop example
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/29/2017
Due date:
% Done:
0%
Estimated time:
Description
In your treeview-dragdrop example consider the treeview (folder) on the left.
Right click with mouse-> context menu appears.
Now sort the treeview. Again right click -> no context menu.
So what changed? The mouseWentUp event seem to fire more than once.
If it fires an even number of times the context menu is shown, on odd numbers it is hidden.
The reason for that is the following code part in TreeViewDragDrop::showPopup.
if (popup_->isHidden())
popup_->popup(event);
else
popup_->hide();
I do not understand the "else" anyway, but the main question (bug) is
why does mouseWentUp fire more than once?
Regards,
Heiko
Updated by Heiko Gerdau about 7 years ago
Of course it's the other way around:
odd number ---> shown
even number ---> hidden
sorry
Actions