mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
Merged in filnet/librepilot/LP-496_reverted_bank_copy (pull request #442)
LP-496 config stabilization: copy banks from/to were reversed Approved-by: Philippe Renon <philippe_renon@yahoo.fr> Approved-by: Lalanne Laurent <f5soh@free.fr> Approved-by: Jan NIJS <dr.oblivium@gmail.com> Approved-by: Brian Webb <webbbn@gmail.com> Approved-by: Alessio Morale <alessiomorale@gmail.com>
This commit is contained in:
commit
cf1b716c9d
@ -180,12 +180,12 @@ void ConfigStabilizationWidget::setupStabBanksGUI()
|
||||
if (j != i) {
|
||||
menuAction = new QAction(tr("from %1").arg(j + 1), this);
|
||||
connect(menuAction, SIGNAL(triggered()), &m_bankActionSignalMapper, SLOT(map()));
|
||||
m_bankActionSignalMapper.setMapping(menuAction, QString("copy:%1:%2").arg(i).arg(j));
|
||||
m_bankActionSignalMapper.setMapping(menuAction, QString("copy:%1:%2").arg(j).arg(i));
|
||||
copyMenu->addAction(menuAction);
|
||||
|
||||
menuAction = new QAction(tr("to %1").arg(j + 1), this);
|
||||
connect(menuAction, SIGNAL(triggered()), &m_bankActionSignalMapper, SLOT(map()));
|
||||
m_bankActionSignalMapper.setMapping(menuAction, QString("copy:%1:%2").arg(j).arg(i));
|
||||
m_bankActionSignalMapper.setMapping(menuAction, QString("copy:%1:%2").arg(i).arg(j));
|
||||
copyMenu->addAction(menuAction);
|
||||
|
||||
menuAction = new QAction(tr("with %1").arg(j + 1), this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user