Commit e182a8bc authored by Luci Stanescu's avatar Luci Stanescu

Disabled not implemented functions

parent b63b3fb0
...@@ -1105,11 +1105,11 @@ class ContactListView(QListView): ...@@ -1105,11 +1105,11 @@ class ContactListView(QListView):
account_manager = AccountManager() account_manager = AccountManager()
default_account = account_manager.default_account default_account = account_manager.default_account
self.actions.start_audio_session.setEnabled(default_account is not None) self.actions.start_audio_session.setEnabled(default_account is not None)
self.actions.start_chat_session.setEnabled(default_account is not None) self.actions.start_chat_session.setEnabled(False)
self.actions.send_sms.setEnabled(default_account is not None) self.actions.send_sms.setEnabled(False)
self.actions.send_files.setEnabled(default_account is not None) self.actions.send_files.setEnabled(False)
self.actions.request_remote_desktop.setEnabled(default_account is not None) self.actions.request_remote_desktop.setEnabled(False)
self.actions.share_my_desktop.setEnabled(default_account is not None) self.actions.share_my_desktop.setEnabled(False)
self.actions.edit_item.setEnabled(contact.editable) self.actions.edit_item.setEnabled(contact.editable)
self.actions.delete_item.setEnabled(contact.deletable) self.actions.delete_item.setEnabled(contact.deletable)
self.actions.undo_last_delete.setEnabled(len(model.deleted_items) > 0) self.actions.undo_last_delete.setEnabled(len(model.deleted_items) > 0)
...@@ -1432,11 +1432,11 @@ class ContactSearchListView(QListView): ...@@ -1432,11 +1432,11 @@ class ContactSearchListView(QListView):
account_manager = AccountManager() account_manager = AccountManager()
default_account = account_manager.default_account default_account = account_manager.default_account
self.actions.start_audio_session.setEnabled(default_account is not None) self.actions.start_audio_session.setEnabled(default_account is not None)
self.actions.start_chat_session.setEnabled(default_account is not None) self.actions.start_chat_session.setEnabled(False)
self.actions.send_sms.setEnabled(default_account is not None) self.actions.send_sms.setEnabled(False)
self.actions.send_files.setEnabled(default_account is not None) self.actions.send_files.setEnabled(False)
self.actions.request_remote_desktop.setEnabled(default_account is not None) self.actions.request_remote_desktop.setEnabled(False)
self.actions.share_my_desktop.setEnabled(default_account is not None) self.actions.share_my_desktop.setEnabled(False)
self.actions.edit_item.setEnabled(contact.editable) self.actions.edit_item.setEnabled(contact.editable)
self.actions.delete_item.setEnabled(contact.deletable) self.actions.delete_item.setEnabled(contact.deletable)
self.actions.undo_last_delete.setEnabled(len(source_model.deleted_items) > 0) self.actions.undo_last_delete.setEnabled(len(source_model.deleted_items) > 0)
......
...@@ -216,8 +216,8 @@ class MainWindow(base_class, ui_class): ...@@ -216,8 +216,8 @@ class MainWindow(base_class, ui_class):
def enable_call_buttons(self, enabled): def enable_call_buttons(self, enabled):
self.audio_call_button.setEnabled(enabled) self.audio_call_button.setEnabled(enabled)
self.im_session_button.setEnabled(enabled) self.im_session_button.setEnabled(False)
self.ds_session_button.setEnabled(enabled) self.ds_session_button.setEnabled(False)
def load_audio_devices(self): def load_audio_devices(self):
settings = SIPSimpleSettings() settings = SIPSimpleSettings()
......
...@@ -1237,6 +1237,9 @@ padding: 2px;</string> ...@@ -1237,6 +1237,9 @@ padding: 2px;</string>
</property> </property>
</action> </action>
<action name="manage_accounts_action"> <action name="manage_accounts_action">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text"> <property name="text">
<string>&amp;Manage accounts...</string> <string>&amp;Manage accounts...</string>
</property> </property>
......
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