Commit 515ff7f4 authored by Dan Pascu's avatar Dan Pascu

Only enable file transfer menu entry if operation is available

parent a2a7e55f
...@@ -3074,7 +3074,7 @@ class ContactListView(QListView): ...@@ -3074,7 +3074,7 @@ class ContactListView(QListView):
self.actions.start_audio_call.setEnabled(default_account is not None) self.actions.start_audio_call.setEnabled(default_account is not None)
self.actions.start_chat_session.setEnabled(default_account is not None) self.actions.start_chat_session.setEnabled(default_account is not None)
self.actions.send_sms.setEnabled(False) self.actions.send_sms.setEnabled(False)
self.actions.send_files.setEnabled(True) self.actions.send_files.setEnabled(default_account is not None)
self.actions.request_screen.setEnabled(False) self.actions.request_screen.setEnabled(False)
self.actions.share_my_screen.setEnabled(False) self.actions.share_my_screen.setEnabled(False)
self.actions.edit_item.setEnabled(contact.editable) self.actions.edit_item.setEnabled(contact.editable)
...@@ -3471,7 +3471,7 @@ class ContactSearchListView(QListView): ...@@ -3471,7 +3471,7 @@ class ContactSearchListView(QListView):
self.actions.start_audio_call.setEnabled(default_account is not None) self.actions.start_audio_call.setEnabled(default_account is not None)
self.actions.start_chat_session.setEnabled(default_account is not None) self.actions.start_chat_session.setEnabled(default_account is not None)
self.actions.send_sms.setEnabled(False) self.actions.send_sms.setEnabled(False)
self.actions.send_files.setEnabled(True) self.actions.send_files.setEnabled(default_account is not None)
self.actions.request_screen.setEnabled(False) self.actions.request_screen.setEnabled(False)
self.actions.share_my_screen.setEnabled(False) self.actions.share_my_screen.setEnabled(False)
self.actions.edit_item.setEnabled(contact.editable) self.actions.edit_item.setEnabled(contact.editable)
...@@ -3747,7 +3747,7 @@ class ContactDetailView(QListView): ...@@ -3747,7 +3747,7 @@ class ContactDetailView(QListView):
self.actions.start_audio_call.setEnabled(account_manager.default_account is not None and contact_has_uris) self.actions.start_audio_call.setEnabled(account_manager.default_account is not None and contact_has_uris)
self.actions.start_chat_session.setEnabled(account_manager.default_account is not None and contact_has_uris) self.actions.start_chat_session.setEnabled(account_manager.default_account is not None and contact_has_uris)
self.actions.send_sms.setEnabled(False) self.actions.send_sms.setEnabled(False)
self.actions.send_files.setEnabled(True) self.actions.send_files.setEnabled(account_manager.default_account is not None and contact_has_uris)
self.actions.request_screen.setEnabled(False) self.actions.request_screen.setEnabled(False)
self.actions.share_my_screen.setEnabled(False) self.actions.share_my_screen.setEnabled(False)
self.actions.edit_contact.setEnabled(model.contact_detail.editable) self.actions.edit_contact.setEnabled(model.contact_detail.editable)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment