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
46e76765
Commit
46e76765
authored
Feb 06, 2016
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not allow dialing contacts without URIs
parent
249ce0d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
23 deletions
+24
-23
contacts.py
blink/contacts.py
+24
-23
No files found.
blink/contacts.py
View file @
46e76765
...
...
@@ -3133,14 +3133,14 @@ class ContactListView(QListView):
menu
.
addAction
(
self
.
actions
.
undo_last_delete
)
self
.
actions
.
undo_last_delete
.
setText
(
undo_delete_text
)
account_manager
=
AccountManager
()
default_account
=
account_manager
.
default_account
self
.
actions
.
start_audio_call
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
start_video_call
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
start_chat_session
.
setEnabled
(
default_account
is
not
None
)
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
(
default_account
is
not
None
)
self
.
actions
.
share_my_screen
.
setEnabled
(
default_account
is
not
None
)
can_call
=
account_manager
.
default_account
is
not
None
and
contact
.
uri
is
not
None
self
.
actions
.
start_audio_call
.
setEnabled
(
can_call
)
self
.
actions
.
start_video_call
.
setEnabled
(
can_call
)
self
.
actions
.
start_chat_session
.
setEnabled
(
can_call
)
self
.
actions
.
send_sms
.
setEnabled
(
can_call
)
self
.
actions
.
send_files
.
setEnabled
(
can_call
)
self
.
actions
.
request_screen
.
setEnabled
(
can_call
)
self
.
actions
.
share_my_screen
.
setEnabled
(
can_call
)
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
)
...
...
@@ -3542,14 +3542,14 @@ class ContactSearchListView(QListView):
menu
.
addAction
(
self
.
actions
.
undo_last_delete
)
self
.
actions
.
undo_last_delete
.
setText
(
undo_delete_text
)
account_manager
=
AccountManager
()
default_account
=
account_manager
.
default_account
self
.
actions
.
start_audio_call
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
start_video_call
.
setEnabled
(
default_account
is
not
None
)
self
.
actions
.
start_chat_session
.
setEnabled
(
default_account
is
not
None
)
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
(
default_account
is
not
None
)
self
.
actions
.
share_my_screen
.
setEnabled
(
default_account
is
not
None
)
can_call
=
account_manager
.
default_account
is
not
None
and
contact
.
uri
is
not
None
self
.
actions
.
start_audio_call
.
setEnabled
(
can_call
)
self
.
actions
.
start_video_call
.
setEnabled
(
can_call
)
self
.
actions
.
start_chat_session
.
setEnabled
(
can_call
)
self
.
actions
.
send_sms
.
setEnabled
(
can_call
)
self
.
actions
.
send_files
.
setEnabled
(
can_call
)
self
.
actions
.
request_screen
.
setEnabled
(
can_call
)
self
.
actions
.
share_my_screen
.
setEnabled
(
can_call
)
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
)
...
...
@@ -3831,13 +3831,14 @@ class ContactDetailView(QListView):
self
.
actions
.
make_uri_default
.
setEnabled
(
selected_item
.
uri
is
not
model
.
contact
.
uris
.
default
)
menu
.
addAction
(
self
.
actions
.
edit_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_video_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
(
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
(
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
)
can_call
=
account_manager
.
default_account
is
not
None
and
contact_has_uris
self
.
actions
.
start_audio_call
.
setEnabled
(
can_call
)
self
.
actions
.
start_video_call
.
setEnabled
(
can_call
)
self
.
actions
.
start_chat_session
.
setEnabled
(
can_call
)
self
.
actions
.
send_sms
.
setEnabled
(
can_call
)
self
.
actions
.
send_files
.
setEnabled
(
can_call
)
self
.
actions
.
request_screen
.
setEnabled
(
can_call
)
self
.
actions
.
share_my_screen
.
setEnabled
(
can_call
)
self
.
actions
.
edit_contact
.
setEnabled
(
model
.
contact_detail
.
editable
)
self
.
actions
.
delete_contact
.
setEnabled
(
model
.
contact_detail
.
deletable
)
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