diff options
-rw-r--r-- | welcomepage.cc | 16 | ||||
-rw-r--r-- | welcomepage.hh | 1 |
2 files changed, 17 insertions, 0 deletions
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 |