This pull is intended to prepare the optionsdialog for further changes to the proxy options and includes a few changes that would bloat a proxy options pull.
- remove duplicate includes, that are already present in ui_optionsdialog.h
- change QIntValidator to not allow 0 as port-number
- re-order some function calls to match the Ui element order, for better readbility and to prepare for the addition of further IPv6 and Tor proxy options
- restat warning for the language selection is only shown, when the language was changed (not on simply activating the Ui element)
- modify proxy warning message “This setting…” into “Proxy settings…”
- split check for object == ui->proxyIp into seperate if-clause
- unify used format for comments in the code
- introduce handleProxyIpValid() function, which handles UI elements and the save button states for valid/invalid proxy IPs
This is what I intend to do with the proxy options (not included here):