Duplicated code removed

This commit is contained in:
bsongis
2014-04-05 08:28:06 +02:00
parent f2af6bf854
commit 1751a1a06c
6 changed files with 34 additions and 25 deletions
+1 -6
View File
@@ -143,12 +143,7 @@ StandardPage::StandardPage(WizardPage currentPage, WizardDialog *dlg, QString im
int StandardPage::getDefaultChannel(const Input input)
{
for (int channel=0; channel<4; channel++) {
unsigned int stick_index = chout_ar[4*wizDlg->settings.templateSetup + channel];
if (input == stick_index)
return channel;
}
return -1;
return wizDlg->settings.getDefaultChannel(input-1);
}
int StandardPage::nextFreeChannel(int channel)