From d37840b32f0baaf497fc3c5bdf8dcf7210332a76 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 19 Nov 2019 15:17:35 -0600 Subject: Qt UI: Note whether networking is enabled or disabled --- ui/qt5/networkingpage.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/qt5/networkingpage.cc b/ui/qt5/networkingpage.cc index 86f8aff..c1bf372 100644 --- a/ui/qt5/networkingpage.cc +++ b/ui/qt5/networkingpage.cc @@ -14,6 +14,7 @@ #include "horizonwizard.hh" #include +#include #include NetworkingPage::NetworkingPage(QWidget *parent) : HorizonWizardPage(parent) { @@ -54,7 +55,10 @@ void NetworkingPage::initializePage() { radioGroup->addButton(skip); QObject::connect(radioGroup, static_cast(&QButtonGroup::buttonClicked), - [=](QAbstractButton *) { + [=](QAbstractButton *button) { + if(button == skip) setField("network", QVariant(false)); + else setField("network", QVariant(true)); + emit completeChanged(); }); -- cgit v1.2.3-70-g09d2