summaryrefslogtreecommitdiff
path: root/ui/qt5/networkingpage.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-01 17:48:27 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-01 17:48:27 -0600
commita724bc15414f0fc1eaf66b82199e0aac3d18705a (patch)
treea29eaf7150bdee539fb9e36e8c4503249eeb8abd /ui/qt5/networkingpage.cc
parent10eea3578306be8af2271a63204447c5bd70ebaf (diff)
downloadhorizon-a724bc15414f0fc1eaf66b82199e0aac3d18705a.tar.gz
horizon-a724bc15414f0fc1eaf66b82199e0aac3d18705a.tar.bz2
horizon-a724bc15414f0fc1eaf66b82199e0aac3d18705a.tar.xz
horizon-a724bc15414f0fc1eaf66b82199e0aac3d18705a.zip
Qt UI: Drastically simplify Runtime Env NIC selection, keep DHCP setting
Diffstat (limited to 'ui/qt5/networkingpage.cc')
-rw-r--r--ui/qt5/networkingpage.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/ui/qt5/networkingpage.cc b/ui/qt5/networkingpage.cc
index 15fea56..aac4b70 100644
--- a/ui/qt5/networkingpage.cc
+++ b/ui/qt5/networkingpage.cc
@@ -55,8 +55,16 @@ void NetworkingPage::initializePage() {
QObject::connect(radioGroup, static_cast<void (QButtonGroup:: *)(QAbstractButton *)>(&QButtonGroup::buttonClicked),
[=](QAbstractButton *button) {
- if(button == skip) horizonWizard()->network = false;
- else horizonWizard()->network = true;
+ if(button == skip) {
+ horizonWizard()->network = false;
+ } else {
+ horizonWizard()->network = true;
+ if(button == simple) {
+ horizonWizard()->net_dhcp = true;
+ } else {
+ horizonWizard()->net_dhcp = false;
+ }
+ }
emit completeChanged();
});
@@ -78,7 +86,7 @@ bool NetworkingPage::isComplete() const {
int NetworkingPage::nextId() const {
if(radioGroup->checkedButton() == simple) {
- if(horizonWizard()->interfaces.size() > 1) {
+ if(horizonWizard()->interfaces.size() != 1) {
return HorizonWizard::Page_Network_Iface;
} else {
horizonWizard()->chosen_auto_iface =