forked from M-Labs/artiq
1
0
Fork 0

gui/applets: catch duplicate applet UIDs (#430)

This commit is contained in:
Sebastien Bourdeauducq 2016-05-07 11:47:17 +08:00
parent 2eb67902e8
commit 7466a4d9a9
1 changed files with 1 additions and 1 deletions

View File

@ -288,6 +288,7 @@ class AppletsDock(QtWidgets.QDockWidget):
if uid is None:
uid = next(iter(set(range(len(self.applet_uids) + 1))
- self.applet_uids))
assert uid not in self.applet_uids
self.applet_uids.add(uid)
row = self.table.rowCount()
@ -328,7 +329,6 @@ class AppletsDock(QtWidgets.QDockWidget):
self.applet_uids.remove(item.applet_uid)
self.table.removeRow(row)
async def stop(self):
for row in range(self.table.rowCount()):
dock = self.table.item(row, 0).applet_dock