labsquare/cutevariant

[Variant View] No contextual menu on variant line

antonylebechec opened this issue · 3 comments

Please edit this template:

Describe the bug
Sometimes, contextual menu on variant line does not appear

To Reproduce
Steps to reproduce the behavior, for example:

  1. Open a project
  2. Click right on a variant line (contextual menu appears)
  3. Click on a query (Query List)
  4. Click right on a variant line (contextual menu does NOT appear)

Note: no error message on log

Expected behavior
Contextual menu appears

Screenshots
contextual_menu

Desktop (please complete the following information):

  • OS: MacOS
  • Version of Cutevariant: devel

Same when "Filters Editor" plugin used.
Another gif showing that it happens sometime:
contextual_menu2

Solution:
gui/plugins/variant_view/widgets.py line 1175, remove:

        if not self.view.viewport().geometry().contains(pos):
            # mouse outside te view , skip
            return

solved.