taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

Setting model for tauruscombobox raises RuntimeError with PySide2 #1100

Closed MikeFalowski closed 4 years ago

MikeFalowski commented 4 years ago

It looks like PyQt5 raises TypeError on disconnect if signal wasn't connected before, which is caught, but PySide2 raises RuntimeError and stops the application in this case.

venv/lib64/python3.6/site-packages/taurus/qt/qtgui/input/tauruscombobox.py", line 78, in postDetach self.currentIndexChanged.disconnect(self.writeIndexValue) RuntimeError: Failed to disconnect signal currentIndexChanged(int).