Skip to content
  • Filip Roséen's avatar
    gui/qt: fix invalid static_cast · f2b8777b
    Filip Roséen authored and Thomas Guillem's avatar Thomas Guillem committed
    
    
    The dynamic type of the object referred to by "event" is not
    QMouseEvent if "event->type()" is Event::Leave.
    
    The previous implementation would unconditionally refer to the object
    as-if it was a QMouseEvent when it is simply a QEvent; causing
    undefined-behavior.
    
    Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
    f2b8777b