]> git.sesse.net Git - pkanalytics/commitdiff
pull_landed is a no-player event.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 May 2023 17:52:07 +0000 (19:52 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 May 2023 17:52:07 +0000 (19:52 +0200)
main.cpp

index 4cdbfcc2974d5d6e48f060d15910ce1f9025da93..95ecdb95ee83f11f53380dde71215c776ac2b62a 100644 (file)
--- 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"); });