Remove the reverse song constant lookup

This commit is contained in:
Marcus Huderle
2018-03-03 12:20:59 -08:00
parent 669c81b50b
commit d87d5e6f00
3 changed files with 1 additions and 26 deletions

View File

@@ -203,11 +203,7 @@ void MainWindow::displayMapProperties() {
QStringList songs = project->getSongNames();
ui->comboBox_Song->addItems(songs);
QString song = map->song;
if (!songs.contains(song)) {
song = project->getSongName(song.toInt());
}
ui->comboBox_Song->setCurrentText(song);
ui->comboBox_Song->setCurrentText(map->song);
ui->comboBox_Location->addItems(project->getLocations());
ui->comboBox_Location->setCurrentText(map->location);