mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-02 03:16:19 -04:00
Skip updating or canceling items that haven't been added
This commit is contained in:
parent
8dddc03e59
commit
db07920aca
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue