107 Private slot to edit the selected WebREPL connection. |
107 Private slot to edit the selected WebREPL connection. |
108 """ |
108 """ |
109 itm = self.webreplUrlsList.selectedItems()[0] |
109 itm = self.webreplUrlsList.selectedItems()[0] |
110 dlg = MicroPythonWebreplUrlAddEditDialog( |
110 dlg = MicroPythonWebreplUrlAddEditDialog( |
111 self.__definedNames(), |
111 self.__definedNames(), |
112 connectionParams=(itm.text(0), itm.text(1), itm.text(2)), |
112 connectionParams=( |
|
113 itm.text(0), |
|
114 itm.text(1), |
|
115 itm.text(2), |
|
116 itm.data(0, Qt.ItemDataRole.UserRole), |
|
117 ), |
113 parent=self, |
118 parent=self, |
114 ) |
119 ) |
115 if dlg.exec() == QDialog.DialogCode.Accepted: |
120 if dlg.exec() == QDialog.DialogCode.Accepted: |
116 name, description, url, deviceType = dlg.getWebreplUrl() |
121 name, description, url, deviceType = dlg.getWebreplUrl() |
117 itm.setText(0, name) |
122 itm.setText(0, name) |