taurus-org / taurus

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

TaurusGui export to xml fails #1129

Open cpascual opened 4 years ago

cpascual commented 4 years ago

Found while doing manual release tests in #1128

Testing the taurus gui actions I tried the "Tools->export current panel configuration to xml" and got this exception

Traceback (most recent call last):
  File "/home/cpascual/.virtualenvs/tmpJul20/lib/python3.7/site-packages/taurus/qt/qtgui/taurusgui/taurusgui.py", line 1737, in onExportCurrentPanelConfiguration
    panelxml = PanelDescription.fromPanel(panel).toXml()
  File "/home/cpascual/.virtualenvs/tmpJul20/lib/python3.7/site-packages/taurus/qt/qtgui/taurusgui/utils.py", line 429, in fromPanel
    icon=panel.icon,
AttributeError: 'DockWidgetPanel' object has no attribute 'icon'

Note: this may be related to #940 (because the Panel Description icon was added there)