From c036a726361c352f4ac583d2ae287e9529eec93e Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Fri, 13 Dec 2019 14:30:47 -0500 Subject: [PATCH] Fixed #280: sync to station right click option. --- mainwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 45e4eae..d4079b0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1196,6 +1196,12 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, setSubmode(submode); }); } + + int tdrift = -int(items.last().tdrift * 1000); + auto qtrAction = menu->addAction(QString("Jump to %1 time drift").arg(tdrift)); + connect(qtrAction, &QAction::triggered, this, [this, tdrift](){ + setDrift(tdrift); + }); } menu->addSeparator(); @@ -1432,6 +1438,12 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, }); } + int tdrift = -int(m_callActivity[selectedCall].tdrift * 1000); + auto qtrAction = menu->addAction(QString("Jump to %1 time drift").arg(tdrift)); + connect(qtrAction, &QAction::triggered, this, [this, tdrift](){ + setDrift(tdrift); + }); + menu->addSeparator(); } }