GUI: SubframePredictPeaks segfaults if "Predict" button is clicked twice
From DetectorScene.cpp
:
void DetectorScene::clearPeakItems()
{
if (!_currentData)
return;
for (PeakItemGraphic* p : _peak_graphics_items)
removeItem(p); // <---- cause of crash
_peak_graphics_items.clear();
}