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(); } }