mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix cancel button in PendingTransfersDialog
This commit is contained in:
parent
58b4e5284e
commit
bb42a1f63a
@ -121,6 +121,8 @@ class PendingTransfersDialog(QDialog):
|
||||
) -> None:
|
||||
"""Updates the state of the delete button."""
|
||||
if selected.empty():
|
||||
self.cancel_button.setEnabled(False)
|
||||
self.cancel_button.setEnabled(
|
||||
self.can_cancel(self.transfer_list.currentIndex())
|
||||
)
|
||||
return
|
||||
self.cancel_button.setEnabled(self.can_cancel(selected.indexes()[0]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user