mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-14 08:49:47 -05:00
Skip updating or canceling items that haven't been added
This commit is contained in:
parent
04e4385667
commit
02538520a2
@ -355,13 +355,15 @@ class HistoryItemList(QtWidgets.QScrollArea):
|
||||
"""
|
||||
Update an item. Override this method.
|
||||
"""
|
||||
self.items[id].update(data)
|
||||
if id in self.items:
|
||||
self.items[id].update(data)
|
||||
|
||||
def cancel(self, id):
|
||||
"""
|
||||
Cancel an item. Override this method.
|
||||
"""
|
||||
self.items[id].cancel()
|
||||
if id in self.items:
|
||||
self.items[id].cancel()
|
||||
|
||||
def reset(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user