From: Steinar H. Gunderson Date: Mon, 1 May 2023 17:52:07 +0000 (+0200) Subject: pull_landed is a no-player event. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d9d1ea8099961060f8ec41c7009ba3d8d2c3d333;p=pkanalytics pull_landed is a no-player event. --- diff --git a/main.cpp b/main.cpp index 4cdbfcc..95ecdb9 100644 --- a/main.cpp +++ b/main.cpp @@ -97,7 +97,7 @@ MainWindow::MainWindow(EventsModel *events, PlayersModel *players) : events(even connect(ui->offensive_soft_plus, &QPushButton::clicked, [this]() { set_current_event_type("offensive_soft_plus"); }); connect(ui->offensive_soft_minus, &QPushButton::clicked, [this]() { set_current_event_type("offensive_soft_minus"); }); connect(ui->pull, &QPushButton::clicked, [this]() { set_current_event_type("pull"); }); - connect(ui->pull_landed, &QPushButton::clicked, [this]() { set_current_event_type("pull_landed"); }); + connect(ui->pull_landed, &QPushButton::clicked, [this]() { insert_noplayer_event("pull_landed"); }); // Defensive events (TODO add more) connect(ui->their_throwaway, &QPushButton::clicked, [this]() { insert_noplayer_event("their_throwaway"); });