Simplify code a bit
authorunc0rr
Sat, 18 Aug 2012 14:08:16 +0400
changeset 7553 9cfe74ee418b
parent 7551 c212247065e3
child 7555 acadabfb2dd1
child 7561 5f0b1829b16f
Simplify code a bit
QTfrontend/hwform.cpp
QTfrontend/ui/page/pageeditteam.cpp
QTfrontend/ui/page/pageeditteam.h
--- a/QTfrontend/hwform.cpp	Sat Aug 18 13:59:45 2012 +0400
+++ b/QTfrontend/hwform.cpp	Sat Aug 18 14:08:16 2012 +0400
@@ -203,7 +203,7 @@
 
     connect(ui.pageFeedback->BtnSend, SIGNAL(clicked()), this, SLOT(SendFeedback()));
 
-    connect(ui.pageEditTeam, SIGNAL(teamEdited()), this, SLOT(AfterTeamEdit()));
+    connect(ui.pageEditTeam, SIGNAL(goBack()), this, SLOT(AfterTeamEdit()));
 
     connect(ui.pageMultiplayer->BtnStartMPGame, SIGNAL(clicked()), this, SLOT(StartMPGame()));
     connect(ui.pageMultiplayer->teamsSelect, SIGNAL(setEnabledGameStart(bool)),
--- a/QTfrontend/ui/page/pageeditteam.cpp	Sat Aug 18 13:59:45 2012 +0400
+++ b/QTfrontend/ui/page/pageeditteam.cpp	Sat Aug 18 14:08:16 2012 +0400
@@ -472,5 +472,4 @@
 void PageEditTeam::saveTeam()
 {
     data().saveToFile();
-    emit teamEdited();
 }
--- a/QTfrontend/ui/page/pageeditteam.h	Sat Aug 18 13:59:45 2012 +0400
+++ b/QTfrontend/ui/page/pageeditteam.h	Sat Aug 18 14:08:16 2012 +0400
@@ -40,9 +40,6 @@
         void editTeam(const QString & name, const QString & playerHash);
         void deleteTeam(const QString & name);
 
-    signals:
-        void teamEdited();
-
     public slots:
         void CBFort_activated(const QString & gravename);