Skip to content

Commit

Permalink
TCP ADS output button exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
jontio committed Jul 15, 2016
1 parent e955079 commit ac704a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions JAERO/gui_classes/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ void SettingsDialog::poulatepublicvars()
tcp_for_ads_messages_enabled=ui->checkOutputADSMessageToTCP->isChecked();
tcp_as_client_enabled=ui->checkTCPAsClient->isChecked();

ui->checkTCPAsClient->setEnabled(ui->checkOutputADSMessageToTCP->isChecked());

}


Expand Down Expand Up @@ -221,3 +223,9 @@ void SettingsDialog::DataBaseUpdateSugestion()
}
settings.setValue("updatedbinformed3", true);
}

void SettingsDialog::on_checkOutputADSMessageToTCP_stateChanged(int arg1)
{
if(!arg1)ui->checkTCPAsClient->setEnabled(false);
else ui->checkTCPAsClient->setEnabled(true);
}
1 change: 1 addition & 0 deletions JAERO/gui_classes/settingsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ private slots:
void on_lineEditplanesfolder_editingFinished();
void on_pushButtonDownloadDB_clicked();
void DownloadDBResult(const QUrl &url, bool result);
void on_checkOutputADSMessageToTCP_stateChanged(int arg1);
};

#endif // SETTINGSDIALOG_H

0 comments on commit ac704a5

Please sign in to comment.