diff --git a/viewer/JFJochViewerDatasetInfo.cpp b/viewer/JFJochViewerDatasetInfo.cpp index e346fc3e..37657f13 100644 --- a/viewer/JFJochViewerDatasetInfo.cpp +++ b/viewer/JFJochViewerDatasetInfo.cpp @@ -81,13 +81,17 @@ void JFJochViewerDatasetInfo::UpdateLabels() { combo_box->addItem("Spot count (indexed)", 2); combo_box->addItem("Spot count (ice rings)", 3); combo_box->addItem("Spot count (low res.)", 4); - combo_box->addItem("Indexing result", 5); - combo_box->addItem("Profile radius", 6); - combo_box->addItem("B-factor", 8); + + if (!dataset->indexing_result.empty()) { + combo_box->insertSeparator(1000); + combo_box->addItem("Indexing result", 5); + combo_box->addItem("Profile radius", 6); + combo_box->addItem("B-factor", 8); + } for (int i = 0; i < this->dataset->roi.size(); i++) { std::string name = std::string("ROI ") + this->dataset->roi[i]; - + combo_box->insertSeparator(1000); combo_box->addItem(QString::fromStdString(name + " mean"), 100 + i * 4); combo_box->addItem(QString::fromStdString(name + " sum"), 100 + i * 4 + 1); combo_box->addItem(QString::fromStdString(name + " weighted x"), 100 + i * 4 + 2);