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
6e6b42bd
Commit
6e6b42bd
authored
Aug 25, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sending of signals in ContactModel when contacts are added/updated
parent
5f0a055e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
contacts.py
blink/contacts.py
+3
-4
No files found.
blink/contacts.py
View file @
6e6b42bd
...
...
@@ -1193,7 +1193,7 @@ class ContactModel(QAbstractListModel):
def
addContact
(
self
,
contact
):
if
contact
in
self
.
items
:
return
added_items
=
[
contact
.
group
,
contact
]
if
contact
.
group
in
self
.
items
else
[
contact
]
added_items
=
[
contact
]
if
contact
.
group
in
self
.
items
else
[
contact
.
group
,
contact
]
self
.
_add_contact
(
contact
)
self
.
itemsAdded
.
emit
(
added_items
)
...
...
@@ -1209,9 +1209,8 @@ class ContactModel(QAbstractListModel):
self
.
_add_contact
(
contact
)
if
new_group
:
self
.
itemsAdded
.
emit
([
group
])
else
:
index
=
self
.
index
(
self
.
items
.
index
(
contact
))
self
.
dataChanged
.
emit
(
index
,
index
)
index
=
self
.
index
(
self
.
items
.
index
(
contact
))
self
.
dataChanged
.
emit
(
index
,
index
)
@
updates_contacts_db
def
removeContact
(
self
,
contact
):
...
...
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