X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.cpp;h=0ff813b7ac7465c48192de94d08120d0daebd7a6;hb=f3e456ed250cb32c34e43d414f1f05887c355534;hp=05c5d7120628af341fffb2d13b75597eaf7710ac;hpb=aa802626d5a5bfaa21bf38556b80665450909bed;p=pkanalytics diff --git a/mainwindow.cpp b/mainwindow.cpp index 05c5d71..0ff813b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -352,7 +352,7 @@ void MainWindow::insert_or_change_formation(bool offense) QItemSelectionModel *select = ui->event_view->selectionModel(); if (select->hasSelection()) { int row = select->selectedRows().front().row(); // Should only be one, due to our selection behavior. - string expected_type = offense ? "formation_offense" : "formation_defense"; + EventType expected_type = offense ? EventType::FORMATION_OFFENSE : EventType::FORMATION_DEFENSE; if (events->get_event_type(row) == expected_type) { events->set_event_formation(row, formation_id); update_ui_from_time(ui->video->get_position());