Browse Source

Remove signal connection from non-existant button

Neal Wilson 8 years ago
parent
commit
035d082d70
1 changed files with 26 additions and 30 deletions
  1. 26
    30
      config/Windows/navigation.xml

+ 26
- 30
config/Windows/navigation.xml View File

@@ -74,36 +74,32 @@ type="push" />
74 74
 		<item id="resetconnection">Forget Connection Details</item>
75 75
 	</menu>
76 76
     <program>
77
-		var window = this;
78
-		var navigationwindow = window;
79
-		window.loggingWindow = undefined;
80
-		var roasterlist = findChildObject(this, 'machineselector');
81
-		var model = new DeviceTreeModel;
82
-		roasterlist.setModel(model);
83
-		roasterlist.currentIndex = QSettings.value("machineSelection", 0);
84
-		roasterlist['currentIndexChanged(int)'].connect(function() {
85
-			QSettings.setValue("machineSelection", roasterlist.currentIndex);
86
-		});
87
-		var resetdbconnection = findChildObject(this, 'resetconnection');
88
-		resetdbconnection.triggered.connect(function() {
89
-			QSettings.setValue("database/exists", false);
90
-			QSettings.setValue("database/hostname", "");
91
-			QSettings.setValue("database/dbname", "");
92
-			QSettings.setValue("database/user", "");
93
-			QSettings.setValue("database/password", "");
94
-		});
95
-		var profilehistory = findChildObject(this, 'profilehistory');
96
-		profilehistory.clicked.connect(function() {
97
-			createWindow("profilehistory");
98
-		});
99
-		var greensalesbutton = findChildObject(this, 'greensales');
100
-		greensalesbutton.clicked.connect(function() {
101
-			createWindow("greensales");
102
-		});
103
-		var invoicesbutton = findChildObject(this, 'invoicelist');
104
-		invoicesbutton.clicked.connect(function() {
105
-			createWindow("invoicelist");
106
-		});
77
+        var window = this;
78
+        var navigationwindow = window;
79
+        window.loggingWindow = undefined;
80
+        var roasterlist = findChildObject(this, 'machineselector');
81
+        var model = new DeviceTreeModel;
82
+        roasterlist.setModel(model);
83
+        roasterlist.currentIndex = QSettings.value("machineSelection", 0);
84
+        roasterlist['currentIndexChanged(int)'].connect(function() {
85
+            QSettings.setValue("machineSelection", roasterlist.currentIndex);
86
+        });
87
+        var resetdbconnection = findChildObject(this, 'resetconnection');
88
+        resetdbconnection.triggered.connect(function() {
89
+            QSettings.setValue("database/exists", false);
90
+            QSettings.setValue("database/hostname", "");
91
+            QSettings.setValue("database/dbname", "");
92
+            QSettings.setValue("database/user", "");
93
+            QSettings.setValue("database/password", "");
94
+        });
95
+        var profilehistory = findChildObject(this, 'profilehistory');
96
+        profilehistory.clicked.connect(function() {
97
+                createWindow("profilehistory");
98
+        });
99
+        var greensalesbutton = findChildObject(this, 'greensales');
100
+        greensalesbutton.clicked.connect(function() {
101
+                createWindow("greensales");
102
+        });
107 103
         var sumcup = findChildObject(this, 'sumcupping');
108 104
         sumcup.clicked.connect(function() {
109 105
             var sessionlist = createWindow("finsessionlist");

Loading…
Cancel
Save