diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-06 04:48:27 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-06 04:48:27 -0600 |
commit | 674a08ccbd48ba67212318dad46dc43e99c0f1c8 (patch) | |
tree | ebd1560b5d6a407124b02577e5b92a85636ffc8c | |
parent | 397feb0a9a2a5fdc80771cf83e65e3fc71b62563 (diff) | |
download | horizon-674a08ccbd48ba67212318dad46dc43e99c0f1c8.tar.gz horizon-674a08ccbd48ba67212318dad46dc43e99c0f1c8.tar.bz2 horizon-674a08ccbd48ba67212318dad46dc43e99c0f1c8.tar.xz horizon-674a08ccbd48ba67212318dad46dc43e99c0f1c8.zip |
Qt UI: Fix networking page in Runtime Environment
-rw-r--r-- | ui/qt5/networkingpage.cc | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/ui/qt5/networkingpage.cc b/ui/qt5/networkingpage.cc index ae892e8..5e72dba 100644 --- a/ui/qt5/networkingpage.cc +++ b/ui/qt5/networkingpage.cc @@ -28,12 +28,18 @@ void NetworkingPage::initializePage() { QLabel *descLabel; QVBoxLayout *layout; + radioGroup = new QButtonGroup(this); + +#ifdef HAS_INSTALL_ENV if(horizonWizard()->interfaces.empty()) { descLabel = new QLabel(tr( "No supported network interfaces have been detected on your computer.\n\n" "You will not be able to connect to a network nor the Internet.\n\n" "If you have a network interface attached to your computer, it may not be supported by Adélie Linux. Please contact our community at https://help.adelielinux.org/ for help.")); - } else { + } + else +#endif /* HAS_INSTALL_ENV */ + { descLabel = new QLabel(tr( "If your computer is directly connected to the Internet via Ethernet or Wi-Fi using a modem or router, choose Automatic.\n\n" "If you need to set a static IP address, or you use a VPN or proxy server, choose Manual.\n\n" @@ -50,14 +56,11 @@ void NetworkingPage::initializePage() { "or via a modem/router.")); advanced = new QRadioButton(tr("&Manual - my computer connects to an enterprise network,\n" "or I use a static IP address, VPN, or 802.1X security.")); - } - skip = new QRadioButton(tr("&Skip - I don't want to connect to a network or the Internet.")); - - radioGroup = new QButtonGroup(this); - if(!horizonWizard()->interfaces.empty()) { radioGroup->addButton(simple); radioGroup->addButton(advanced); } + skip = new QRadioButton(tr("&Skip - I don't want to connect to a network or the Internet.")); + radioGroup->addButton(skip); QObject::connect(radioGroup, static_cast<void (QButtonGroup:: *)(QAbstractButton *)>(&QButtonGroup::buttonClicked), @@ -79,7 +82,11 @@ void NetworkingPage::initializePage() { layout = new QVBoxLayout; layout->addWidget(descLabel); layout->addSpacing(50); - if(!horizonWizard()->interfaces.empty()) { +#ifdef HAS_INSTALL_ENV + /* The interface list will be empty if we're in a Runtime Environment. */ + if(!horizonWizard()->interfaces.empty()) +#endif /* HAS_INSTALL_ENV */ + { layout->addWidget(simple); layout->addWidget(advanced); } |