Needs to reset net button, not toggle it.
authornemo
Mon, 13 May 2013 14:10:51 -0400
changeset 8982 0c0141cf851a
parent 8981 6213f45b5ead
child 8983 a25e18295959
Needs to reset net button, not toggle it.
QTfrontend/hwform.cpp
QTfrontend/ui/page/pagemain.cpp
QTfrontend/ui/page/pagemain.h
--- a/QTfrontend/hwform.cpp	Sun May 12 07:33:11 2013 -0400
+++ b/QTfrontend/hwform.cpp	Mon May 13 14:10:51 2013 -0400
@@ -600,7 +600,7 @@
     qDebug("Leaving %s, entering %s", qPrintable(stringifyPageId(lastid)), qPrintable(stringifyPageId(id)));
     if (lastid == ID_PAGE_MAIN)
     {
-        ui.pageMain->toggleNetworkChoice();
+        ui.pageMain->resetNetworkChoice();
     }
 
     // pageEnter and pageLeave events
--- a/QTfrontend/ui/page/pagemain.cpp	Sun May 12 07:33:11 2013 -0400
+++ b/QTfrontend/ui/page/pagemain.cpp	Mon May 13 14:10:51 2013 -0400
@@ -189,3 +189,10 @@
     if (visible)    BtnNet->setIcon(originalNetworkIcon);
     else            BtnNet->setIcon(disabledNetworkIcon);
 }
+
+void PageMain::resetNetworkChoice()
+{
+    BtnNetLocal->setVisible(false);
+    BtnNetOfficial->setVisible(false);
+    BtnNet->setIcon(originalNetworkIcon);
+}
--- a/QTfrontend/ui/page/pagemain.h	Sun May 12 07:33:11 2013 -0400
+++ b/QTfrontend/ui/page/pagemain.h	Mon May 13 14:10:51 2013 -0400
@@ -29,6 +29,7 @@
 
     public:
         PageMain(QWidget * parent = 0);
+        void resetNetworkChoice();
 
         QPushButton * BtnSinglePlayer;
         QPushButton * BtnNet;
@@ -41,9 +42,6 @@
         QPushButton * BtnVideos;
         QLabel * mainNote;
 
-    public slots:
-        void toggleNetworkChoice();
-
     private:
         QLayout * bodyLayoutDefinition();
         QLayout * footerLayoutDefinition();
@@ -52,6 +50,8 @@
 
         QString randomTip() const;
 
+    private slots:
+        void toggleNetworkChoice();
 };
 
 #endif