summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-03-04 20:01:32 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-03-04 20:01:32 -0600
commitf38b0e8e6a901df910466d23ef27dd819edc18e5 (patch)
treeaadeb8d3a30d2bb39367c128d57250179b389d76
parent1565f0cc1aa6b6804a885569d9f09801c703b360 (diff)
downloadhorizon-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.cc16
-rw-r--r--welcomepage.hh1
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