As the topic, the selected active build target tree item does not match the current active build target selected in the combobox of the current project.
Because, when the build options dialog being shown, it will check if there was a real build target select, if so, it would make the real build target as selected.
However, if there were some virtual build target existed, the current real target index would based its first non-zero real index within the whole target array.
so, this code line should be modified as: