From f38b0e8e6a901df910466d23ef27dd819edc18e5 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 4 Mar 2017 20:01:32 -0600 Subject: WelcomePage: skip networking on non-native for now --- welcomepage.cc | 16 ++++++++++++++++ welcomepage.hh | 1 + 2 files changed, 17 insertions(+) diff --git a/welcomepage.cc b/welcomepage.cc index ffd8c18..aa84eb5 100644 --- a/welcomepage.cc +++ b/welcomepage.cc @@ -52,3 +52,19 @@ WelcomePage::WelcomePage(QWidget *parent) : HorizonWizardPage(parent) layout->addWidget(descLabel); setLayout(layout); } + +int WelcomePage::nextId() const +{ +#ifndef NOT_NATIVE + if(this->horizonWizard()->interfaces.size() > 0) + { +#endif + return HorizonWizard::Page_Networking; +#ifndef NOT_NATIVE + } + else + { + return HorizonWizard::Page_Software; + } +#endif +} diff --git a/welcomepage.hh b/welcomepage.hh index 344ac33..3f97f8c 100644 --- a/welcomepage.hh +++ b/welcomepage.hh @@ -7,6 +7,7 @@ class WelcomePage : public HorizonWizardPage { public: WelcomePage(QWidget *parent = 0); + int nextId() const; }; #endif // WELCOMEPAGE_HH -- cgit v1.2.3-60-g2f50