浏览代码

Remove signal connection from non-existant button

Neal Wilson 9 年前
父节点
当前提交
035d082d70
共有 1 个文件被更改,包括 26 次插入30 次删除
  1. 26
    30
      config/Windows/navigation.xml

+ 26
- 30
config/Windows/navigation.xml 查看文件

@@ -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");

正在加载...
取消
保存