Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
09a20e40
Commit
09a20e40
authored
Apr 09, 2014
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused menu entries from contact's menu
parent
515ff7f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
contacts.py
blink/contacts.py
+18
-18
No files found.
blink/contacts.py
View file @
09a20e40
...
@@ -3058,10 +3058,10 @@ class ContactListView(QListView):
...
@@ -3058,10 +3058,10 @@ class ContactListView(QListView):
contact
=
selected_items
[
0
]
contact
=
selected_items
[
0
]
menu
.
addAction
(
self
.
actions
.
start_audio_call
)
menu
.
addAction
(
self
.
actions
.
start_audio_call
)
menu
.
addAction
(
self
.
actions
.
start_chat_session
)
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
.
send_files
)
menu
.
addAction
(
self
.
actions
.
request_screen
)
#
menu.addAction(self.actions.request_screen)
menu
.
addAction
(
self
.
actions
.
share_my_screen
)
#
menu.addAction(self.actions.share_my_screen)
menu
.
addSeparator
()
menu
.
addSeparator
()
menu
.
addAction
(
self
.
actions
.
add_group
)
menu
.
addAction
(
self
.
actions
.
add_group
)
menu
.
addAction
(
self
.
actions
.
add_contact
)
menu
.
addAction
(
self
.
actions
.
add_contact
)
...
@@ -3073,10 +3073,10 @@ class ContactListView(QListView):
...
@@ -3073,10 +3073,10 @@ class ContactListView(QListView):
default_account
=
account_manager
.
default_account
default_account
=
account_manager
.
default_account
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
(
Fals
e
)
self
.
actions
.
send_sms
.
setEnabled
(
default_account
is
not
Non
e
)
self
.
actions
.
send_files
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
send_files
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
request_screen
.
setEnabled
(
Fals
e
)
self
.
actions
.
request_screen
.
setEnabled
(
default_account
is
not
Non
e
)
self
.
actions
.
share_my_screen
.
setEnabled
(
Fals
e
)
self
.
actions
.
share_my_screen
.
setEnabled
(
default_account
is
not
Non
e
)
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
)
...
@@ -3457,10 +3457,10 @@ class ContactSearchListView(QListView):
...
@@ -3457,10 +3457,10 @@ class ContactSearchListView(QListView):
contact
=
selected_items
[
0
]
contact
=
selected_items
[
0
]
menu
.
addAction
(
self
.
actions
.
start_audio_call
)
menu
.
addAction
(
self
.
actions
.
start_audio_call
)
menu
.
addAction
(
self
.
actions
.
start_chat_session
)
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
.
send_files
)
menu
.
addAction
(
self
.
actions
.
request_screen
)
#
menu.addAction(self.actions.request_screen)
menu
.
addAction
(
self
.
actions
.
share_my_screen
)
#
menu.addAction(self.actions.share_my_screen)
menu
.
addSeparator
()
menu
.
addSeparator
()
menu
.
addAction
(
self
.
actions
.
edit_item
)
menu
.
addAction
(
self
.
actions
.
edit_item
)
menu
.
addAction
(
self
.
actions
.
delete_item
)
menu
.
addAction
(
self
.
actions
.
delete_item
)
...
@@ -3470,10 +3470,10 @@ class ContactSearchListView(QListView):
...
@@ -3470,10 +3470,10 @@ class ContactSearchListView(QListView):
default_account
=
account_manager
.
default_account
default_account
=
account_manager
.
default_account
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
(
Fals
e
)
self
.
actions
.
send_sms
.
setEnabled
(
default_account
is
not
Non
e
)
self
.
actions
.
send_files
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
send_files
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
request_screen
.
setEnabled
(
Fals
e
)
self
.
actions
.
request_screen
.
setEnabled
(
default_account
is
not
Non
e
)
self
.
actions
.
share_my_screen
.
setEnabled
(
Fals
e
)
self
.
actions
.
share_my_screen
.
setEnabled
(
default_account
is
not
Non
e
)
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
)
...
@@ -3734,10 +3734,10 @@ class ContactDetailView(QListView):
...
@@ -3734,10 +3734,10 @@ class ContactDetailView(QListView):
menu
.
clear
()
menu
.
clear
()
menu
.
addAction
(
self
.
actions
.
start_audio_call
)
menu
.
addAction
(
self
.
actions
.
start_audio_call
)
menu
.
addAction
(
self
.
actions
.
start_chat_session
)
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
.
send_files
)
menu
.
addAction
(
self
.
actions
.
request_screen
)
#
menu.addAction(self.actions.request_screen)
menu
.
addAction
(
self
.
actions
.
share_my_screen
)
#
menu.addAction(self.actions.share_my_screen)
menu
.
addSeparator
()
menu
.
addSeparator
()
if
isinstance
(
selected_item
,
ContactURI
)
and
model
.
contact_detail
.
editable
:
if
isinstance
(
selected_item
,
ContactURI
)
and
model
.
contact_detail
.
editable
:
menu
.
addAction
(
self
.
actions
.
make_uri_default
)
menu
.
addAction
(
self
.
actions
.
make_uri_default
)
...
@@ -3746,10 +3746,10 @@ class ContactDetailView(QListView):
...
@@ -3746,10 +3746,10 @@ class ContactDetailView(QListView):
menu
.
addAction
(
self
.
actions
.
delete_contact
)
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_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
(
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
.
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
(
account_manager
.
default_account
is
not
None
and
contact_has_uris
)
self
.
actions
.
share_my_screen
.
setEnabled
(
False
)
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
.
edit_contact
.
setEnabled
(
model
.
contact_detail
.
editable
)
self
.
actions
.
delete_contact
.
setEnabled
(
model
.
contact_detail
.
deletable
)
self
.
actions
.
delete_contact
.
setEnabled
(
model
.
contact_detail
.
deletable
)
menu
.
exec_
(
event
.
globalPos
())
menu
.
exec_
(
event
.
globalPos
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment