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
71560f3b
Commit
71560f3b
authored
Oct 08, 2016
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug introduced by a recent fix to group ordering
parent
791d2e70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
contacts.py
blink/contacts.py
+3
-0
No files found.
blink/contacts.py
View file @
71560f3b
...
@@ -2493,6 +2493,7 @@ class ContactModel(QAbstractListModel):
...
@@ -2493,6 +2493,7 @@ class ContactModel(QAbstractListModel):
def
_NH_SIPApplicationDidStart
(
self
,
notification
):
def
_NH_SIPApplicationDidStart
(
self
,
notification
):
self
.
state
=
'started'
self
.
state
=
'started'
self
.
_update_group_positions
()
def
_NH_SIPApplicationWillEnd
(
self
,
notification
):
def
_NH_SIPApplicationWillEnd
(
self
,
notification
):
self
.
state
=
'stopping'
self
.
state
=
'stopping'
...
@@ -2694,6 +2695,8 @@ class ContactModel(QAbstractListModel):
...
@@ -2694,6 +2695,8 @@ class ContactModel(QAbstractListModel):
return
position
return
position
def
_find_group_insertion_point
(
self
,
group
):
def
_find_group_insertion_point
(
self
,
group
):
if
group
.
settings
.
position
is
None
:
return
0
# insert new groups at the top
for
item
in
self
.
items
[
GroupList
]:
for
item
in
self
.
items
[
GroupList
]:
if
item
.
relocation_info
is
None
and
item
.
settings
.
position
>=
group
.
settings
.
position
:
if
item
.
relocation_info
is
None
and
item
.
settings
.
position
>=
group
.
settings
.
position
:
position
=
self
.
items
.
index
(
item
)
position
=
self
.
items
.
index
(
item
)
...
...
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