Commit 09a20e40 authored by Dan Pascu's avatar Dan Pascu

Removed unused menu entries from contact's menu

parent 515ff7f4
......@@ -3058,10 +3058,10 @@ class ContactListView(QListView):
contact = selected_items[0]
menu.addAction(self.actions.start_audio_call)
menu.addAction(self.actions.start_chat_session)
menu.addAction(self.actions.send_sms)
#menu.addAction(self.actions.send_sms)
menu.addAction(self.actions.send_files)
menu.addAction(self.actions.request_screen)
menu.addAction(self.actions.share_my_screen)
#menu.addAction(self.actions.request_screen)
#menu.addAction(self.actions.share_my_screen)
menu.addSeparator()
menu.addAction(self.actions.add_group)
menu.addAction(self.actions.add_contact)
......@@ -3073,10 +3073,10 @@ class ContactListView(QListView):
default_account = account_manager.default_account
self.actions.start_audio_call.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(default_account is not None)
self.actions.send_files.setEnabled(default_account is not None)
self.actions.request_screen.setEnabled(False)
self.actions.share_my_screen.setEnabled(False)
self.actions.request_screen.setEnabled(default_account is not None)
self.actions.share_my_screen.setEnabled(default_account is not None)
self.actions.edit_item.setEnabled(contact.editable)
self.actions.delete_item.setEnabled(contact.deletable)
self.actions.undo_last_delete.setEnabled(len(model.deleted_items) > 0)
......@@ -3457,10 +3457,10 @@ class ContactSearchListView(QListView):
contact = selected_items[0]
menu.addAction(self.actions.start_audio_call)
menu.addAction(self.actions.start_chat_session)
menu.addAction(self.actions.send_sms)
#menu.addAction(self.actions.send_sms)
menu.addAction(self.actions.send_files)
menu.addAction(self.actions.request_screen)
menu.addAction(self.actions.share_my_screen)
#menu.addAction(self.actions.request_screen)
#menu.addAction(self.actions.share_my_screen)
menu.addSeparator()
menu.addAction(self.actions.edit_item)
menu.addAction(self.actions.delete_item)
......@@ -3470,10 +3470,10 @@ class ContactSearchListView(QListView):
default_account = account_manager.default_account
self.actions.start_audio_call.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(default_account is not None)
self.actions.send_files.setEnabled(default_account is not None)
self.actions.request_screen.setEnabled(False)
self.actions.share_my_screen.setEnabled(False)
self.actions.request_screen.setEnabled(default_account is not None)
self.actions.share_my_screen.setEnabled(default_account is not None)
self.actions.edit_item.setEnabled(contact.editable)
self.actions.delete_item.setEnabled(contact.deletable)
self.actions.undo_last_delete.setEnabled(len(source_model.deleted_items) > 0)
......@@ -3734,10 +3734,10 @@ class ContactDetailView(QListView):
menu.clear()
menu.addAction(self.actions.start_audio_call)
menu.addAction(self.actions.start_chat_session)
menu.addAction(self.actions.send_sms)
#menu.addAction(self.actions.send_sms)
menu.addAction(self.actions.send_files)
menu.addAction(self.actions.request_screen)
menu.addAction(self.actions.share_my_screen)
#menu.addAction(self.actions.request_screen)
#menu.addAction(self.actions.share_my_screen)
menu.addSeparator()
if isinstance(selected_item, ContactURI) and model.contact_detail.editable:
menu.addAction(self.actions.make_uri_default)
......@@ -3746,10 +3746,10 @@ class ContactDetailView(QListView):
menu.addAction(self.actions.delete_contact)
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.send_sms.setEnabled(False)
self.actions.send_sms.setEnabled(account_manager.default_account is not None and contact_has_uris)
self.actions.send_files.setEnabled(account_manager.default_account is not None and contact_has_uris)
self.actions.request_screen.setEnabled(False)
self.actions.share_my_screen.setEnabled(False)
self.actions.request_screen.setEnabled(account_manager.default_account is not None and contact_has_uris)
self.actions.share_my_screen.setEnabled(account_manager.default_account is not None and contact_has_uris)
self.actions.edit_contact.setEnabled(model.contact_detail.editable)
self.actions.delete_contact.setEnabled(model.contact_detail.deletable)
menu.exec_(event.globalPos())
......
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