diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-19 15:17:35 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-19 15:17:35 -0600 |
commit | d37840b32f0baaf497fc3c5bdf8dcf7210332a76 (patch) | |
tree | e53ba4ed1c64ef323d95e4c4930d25cc3ad005ee | |
parent | f765c97d5a6b7c634f0783ce6b2e1d9e1da2a770 (diff) | |
download | horizon-d37840b32f0baaf497fc3c5bdf8dcf7210332a76.tar.gz horizon-d37840b32f0baaf497fc3c5bdf8dcf7210332a76.tar.bz2 horizon-d37840b32f0baaf497fc3c5bdf8dcf7210332a76.tar.xz horizon-d37840b32f0baaf497fc3c5bdf8dcf7210332a76.zip |
Qt UI: Note whether networking is enabled or disabled
-rw-r--r-- | ui/qt5/networkingpage.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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 <QLabel> +#include <QVariant> #include <QVBoxLayout> NetworkingPage::NetworkingPage(QWidget *parent) : HorizonWizardPage(parent) { @@ -54,7 +55,10 @@ void NetworkingPage::initializePage() { radioGroup->addButton(skip); QObject::connect(radioGroup, static_cast<void (QButtonGroup:: *)(QAbstractButton *)>(&QButtonGroup::buttonClicked), - [=](QAbstractButton *) { + [=](QAbstractButton *button) { + if(button == skip) setField("network", QVariant(false)); + else setField("network", QVariant(true)); + emit completeChanged(); }); |