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
1a19bd48
Commit
1a19bd48
authored
Jun 22, 2013
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Edit/Delete context menu entries for the contact detail view
parent
92154544
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
contacts.py
blink/contacts.py
+3
-1
No files found.
blink/contacts.py
View file @
1a19bd48
...
@@ -3324,7 +3324,7 @@ class ContactDetailView(QListView):
...
@@ -3324,7 +3324,7 @@ class ContactDetailView(QListView):
menu
.
addAction
(
self
.
actions
.
request_remote_desktop
)
menu
.
addAction
(
self
.
actions
.
request_remote_desktop
)
menu
.
addAction
(
self
.
actions
.
share_my_desktop
)
menu
.
addAction
(
self
.
actions
.
share_my_desktop
)
menu
.
addSeparator
()
menu
.
addSeparator
()
if
isinstance
(
selected_item
,
ContactURI
)
and
isinstance
(
model
.
contact
,
addressbook
.
Contact
)
:
if
isinstance
(
selected_item
,
ContactURI
)
and
model
.
contact_detail
.
editable
:
menu
.
addAction
(
self
.
actions
.
make_uri_default
)
menu
.
addAction
(
self
.
actions
.
make_uri_default
)
self
.
actions
.
make_uri_default
.
setEnabled
(
selected_item
.
uri
is
not
model
.
contact
.
uris
.
default
)
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
.
edit_contact
)
...
@@ -3335,6 +3335,8 @@ class ContactDetailView(QListView):
...
@@ -3335,6 +3335,8 @@ class ContactDetailView(QListView):
self
.
actions
.
send_files
.
setEnabled
(
False
)
self
.
actions
.
send_files
.
setEnabled
(
False
)
self
.
actions
.
request_remote_desktop
.
setEnabled
(
False
)
self
.
actions
.
request_remote_desktop
.
setEnabled
(
False
)
self
.
actions
.
share_my_desktop
.
setEnabled
(
False
)
self
.
actions
.
share_my_desktop
.
setEnabled
(
False
)
self
.
actions
.
edit_contact
.
setEnabled
(
model
.
contact_detail
.
editable
)
self
.
actions
.
delete_contact
.
setEnabled
(
model
.
contact_detail
.
deletable
)
menu
.
exec_
(
event
.
globalPos
())
menu
.
exec_
(
event
.
globalPos
())
def
hideEvent
(
self
,
event
):
def
hideEvent
(
self
,
event
):
...
...
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