Skip to content

Commit

Permalink
gui/applets: catch duplicate applet UIDs (#430)
Browse files Browse the repository at this point in the history
sbourdeauducq committed May 7, 2016
1 parent bcfb01b commit dec323b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/gui/applets.py
Original file line number Diff line number Diff line change
@@ -372,6 +372,7 @@ def new(self, uid=None):
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()
@@ -413,7 +414,6 @@ def delete(self):
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

0 comments on commit dec323b

Please sign in to comment.