anuragxel / salt

Segment Anything Labelling Tool
MIT License
1.01k stars 126 forks source link

Error when clicking middle mouse button #48

Open Skwarson96 opened 1 year ago

Skwarson96 commented 1 year ago

Hi! when I press the middle mouse button (usually by accident) I get this error:

QLayout::addChildLayout: layout "" already has a parent
Traceback (most recent call last):
  File "/home/maciej/PycharmProjects/salt/salt/interface.py", line 97, in mousePressEvent
    self.editor.add_click([int(x), int(y)], label, selected_annotations)
UnboundLocalError: local variable 'label' referenced before assignment
Aborted (core dumped)

I will try to add fix of these bug later