Fixed #280: sync to station right click option.

This commit is contained in:
Jordan Sherer 2019-12-13 14:30:47 -05:00
parent ee9ed66f82
commit c036a72636

View File

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