fix uncaught exception when deleting battle for sector update
This commit is contained in:
parent
e64d9ff43b
commit
e457131879
1 changed files with 9 additions and 1 deletions
|
|
@ -282,7 +282,15 @@ class AppController:
|
|||
QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
|
||||
)
|
||||
if reply == QMessageBox.StandardButton.Yes:
|
||||
e.action()
|
||||
try:
|
||||
e.action()
|
||||
except DomainError as inner:
|
||||
QMessageBox.warning(
|
||||
self.view,
|
||||
"Update forbidden",
|
||||
str(inner),
|
||||
)
|
||||
return
|
||||
else:
|
||||
return
|
||||
self.is_dirty = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue