Double-clicking a peaklist in the sidebarshoud open the pekalist properties popup. If the spectrum is displayed somewhere that woeks. If there is no display at all (just the empty default) you get:
|sf_ccpn/SharedCcpn/starTest/CCPN> Traceback (most recent call last):
File "/home/ccpn/SharedCcpn/svnroots/ccpnv3/trunk/ccpn/src/python/ccpn/ui/gui/modules/GuiMainWindow.py", line 279, in _raiseObjectProperties
self.sideBar.raisePopup(obj, item)
File "/home/ccpn/SharedCcpn/svnroots/ccpnv3/trunk/ccpn/src/python/ccpn/ui/gui/widgets/SideBar.py", line 436, in raisePopup
popup = PeakListPropertiesPopup(peakList=obj)
File "/home/ccpn/SharedCcpn/svnroots/ccpnv3/trunk/ccpn/src/python/ccpn/ui/gui/popups/PeakListPropertiesPopup.py", line 28, in init
self.symbolColourPulldownList.setCurrentIndex(list(spectrumColours.keys()).index(self.peakListViews[0].symbolColour))
IndexError: list index out of range
The colour will now default to the peakList colour if there are no peakListViews, or the spectrum positiveContourColour if the peakList colour is not set. But note that the next time a peakListView object is created, the colour is set (by the API) to #7a7a7a.
Also note that the PeakList Properties editor changes the (symbol or text) colour of all peakListViews (and now also the peakList). Possibly we should forget about (in theory) allowing separate colours for separate peakListViews.