From fa825f973ea707804b6c2e05052a2dfe9e0e917f Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 23 May 2020 22:34:58 -0500 Subject: Qt UI: Ensure manual config isn't shown after DHCP --- ui/qt5/netdhcppage.cc | 6 +++++- ui/qt5/netdhcppage.hh | 9 +++++---- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'ui') diff --git a/ui/qt5/netdhcppage.cc b/ui/qt5/netdhcppage.cc index 5a16af2..4428538 100644 --- a/ui/qt5/netdhcppage.cc +++ b/ui/qt5/netdhcppage.cc @@ -3,7 +3,7 @@ * horizon-qt5, the Qt 5 user interface for * Project Horizon * - * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved. + * Copyright (c) 2019-2020 Adélie Linux and contributors. All rights reserved. * This code is licensed under the AGPL 3.0 license, as noted in the * LICENSE-code file in the root directory of this repository. * @@ -160,3 +160,7 @@ void NetDHCPPage::initializePage() { bool NetDHCPPage::isComplete() const { return online; } + +int NetDHCPPage::nextId() const { + return HorizonWizard::Page_DateTime; +} diff --git a/ui/qt5/netdhcppage.hh b/ui/qt5/netdhcppage.hh index 5d0f3fd..84aaff6 100644 --- a/ui/qt5/netdhcppage.hh +++ b/ui/qt5/netdhcppage.hh @@ -3,7 +3,7 @@ * horizon-qt5, the Qt 5 user interface for * Project Horizon * - * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved. + * Copyright (c) 2019-2020 Adélie Linux and contributors. All rights reserved. * This code is licensed under the AGPL 3.0 license, as noted in the * LICENSE-code file in the root directory of this repository. * @@ -23,10 +23,11 @@ class NetDHCPPage : public HorizonWizardPage { public: - NetDHCPPage(QWidget *parent = nullptr); + explicit NetDHCPPage(QWidget *parent = nullptr); - void initializePage(); - bool isComplete() const; + void initializePage() override; + bool isComplete() const override; + int nextId() const override; private: StepProgressWidget *progress; QLabel *information; -- cgit v1.2.3-60-g2f50