diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-23 22:34:58 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-23 22:34:58 -0500 |
commit | fa825f973ea707804b6c2e05052a2dfe9e0e917f (patch) | |
tree | 65585d5987cd5e899c0a63b55ea97c1e5b4b3a12 | |
parent | 95c7f91fe9d993f13e3fa96ee935e4665d1541b8 (diff) | |
download | horizon-fa825f973ea707804b6c2e05052a2dfe9e0e917f.tar.gz horizon-fa825f973ea707804b6c2e05052a2dfe9e0e917f.tar.bz2 horizon-fa825f973ea707804b6c2e05052a2dfe9e0e917f.tar.xz horizon-fa825f973ea707804b6c2e05052a2dfe9e0e917f.zip |
Qt UI: Ensure manual config isn't shown after DHCP
-rw-r--r-- | ui/qt5/netdhcppage.cc | 6 | ||||
-rw-r--r-- | ui/qt5/netdhcppage.hh | 9 |
2 files changed, 10 insertions, 5 deletions
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; |