diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-03-04 20:01:32 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-03-04 20:01:32 -0600 |
commit | f38b0e8e6a901df910466d23ef27dd819edc18e5 (patch) | |
tree | aadeb8d3a30d2bb39367c128d57250179b389d76 | |
parent | 1565f0cc1aa6b6804a885569d9f09801c703b360 (diff) | |
download | horizon-qt5-f38b0e8e6a901df910466d23ef27dd819edc18e5.tar.gz horizon-qt5-f38b0e8e6a901df910466d23ef27dd819edc18e5.tar.bz2 horizon-qt5-f38b0e8e6a901df910466d23ef27dd819edc18e5.tar.xz horizon-qt5-f38b0e8e6a901df910466d23ef27dd819edc18e5.zip |
WelcomePage: skip networking on non-native for now
-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 |