summaryrefslogtreecommitdiff
path: root/ui/qt5/netmanualpage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt5/netmanualpage.cc')
-rw-r--r--ui/qt5/netmanualpage.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt5/netmanualpage.cc b/ui/qt5/netmanualpage.cc
index 1486461..4e3ffea 100644
--- a/ui/qt5/netmanualpage.cc
+++ b/ui/qt5/netmanualpage.cc
@@ -198,6 +198,7 @@ void NetManualPage::initializePage() {
tr("Configuring interface %1 (%2)")
.arg(QString::fromStdString(iface->first))
.arg(iface->second.mac)));
+ horizonWizard()->chosen_auto_iface = iface->first;
}
#else /* !HAS_INSTALL_ENV */
QLineEdit *ifaceBox = new QLineEdit;
@@ -206,6 +207,7 @@ void NetManualPage::initializePage() {
ifaceWidget->layout()->addWidget(ifaceBox);
connect(ifaceBox, &QLineEdit::textEdited, [=] {
horizonWizard()->chosen_auto_iface = ifaceBox->text().toStdString();
+ emit completeChanged();
});
#endif /* HAS_INSTALL_ENV */
@@ -220,6 +222,11 @@ void NetManualPage::initializePage() {
#include <iostream>
bool NetManualPage::isComplete() const {
+#ifndef HAS_INSTALL_ENV
+ /* Ensure an interface has been chosen. */
+ if(horizonWizard()->chosen_auto_iface.empty()) return false;
+#endif /* !HAS_INSTALL_ENV */
+
/* REQ: UI.Network.Manual.Enable: At least one must be ticked. */
if(!useV6->isChecked() && !useV4->isChecked()) return false;