Skip to content

Commit

Permalink
add source locations only once to selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Friedel committed Jun 20, 2023
1 parent 12e6cdd commit 004cfaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/fm-editor/FeatureModelEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ void FeatureModelEditor::inspectFeatureSources(
Repository = QFileDialog::getExistingDirectory();
}
Ui->sources->clear();
QSet<QString> Locations = {};
for (const auto &Source : Feature->getLocations()) {
Ui->sources->addItem(QString::fromStdString(Source.getPath().string()));
Locations.insert(QString::fromStdString(Source.getPath().string()));
}
Ui->sources->addItems(Locations.values());
Ui->sourcesLable->setText(
QString::fromStdString("Sources for: " + Feature->getName().str()));
if (Ui->sources->count() == 1) {
Expand Down

0 comments on commit 004cfaa

Please sign in to comment.