Additional warning fixes; run brew update before brew install for hamlib

This commit is contained in:
Charles J. Cliffe
2019-01-10 21:23:26 -05:00
parent e75387c25d
commit c57a123130
5 changed files with 12 additions and 6 deletions
+3 -2
View File
@@ -498,8 +498,9 @@ std::string SDRDevicesDialog::getSelectedChoiceOption(wxPGProperty* prop, const
int choiceIndex = prop->GetChoiceSelection();
if (arg.options.size() > 0) {
if (choiceIndex >= 0 && choiceIndex < arg.options.size()) {
int choiceMax = arg.options.size();
if (choiceIndex >= 0 && choiceIndex < choiceMax) {
//normal selection
optionName = arg.options[choiceIndex];
} else {