X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=main.cpp;h=1c0f2e3017075034b570b28ee041a4e9c76e6231;hb=38bbba081db455d5f84e64bd74dcc10236fa2120;hp=80ebd6f31654ea70d1080a022a178cb7bfaf579c;hpb=4e11b90cd32924efeb39606e70746a1022017881;p=pkanalytics diff --git a/main.cpp b/main.cpp index 80ebd6f..1c0f2e3 100644 --- a/main.cpp +++ b/main.cpp @@ -52,7 +52,7 @@ MainWindow::MainWindow(EventsModel *events, PlayersModel *players, ui->event_view->setColumnWidth(2, 150); connect(ui->event_view->selectionModel(), &QItemSelectionModel::currentRowChanged, [this, events](const QModelIndex ¤t, const QModelIndex &previous) { - uint64_t t = events->get_time(current.row()); + int64_t t = events->get_time(current.row()); if (t != video->position()) { video->setPosition(events->get_time(current.row())); } else { @@ -232,7 +232,7 @@ void MainWindow::insert_player_event(int button_id) { uint64_t t = video->position(); vector team = events->sort_team(events->get_team_at(t)); - if (button_id >= team.size()) { + if (unsigned(button_id) >= team.size()) { return; } int player_id = team[button_id];