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
15b35a29
Commit
15b35a29
authored
Jul 19, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed attribute name
parent
5165de2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
contacts.py
blink/contacts.py
+3
-3
No files found.
blink/contacts.py
View file @
15b35a29
...
@@ -1148,7 +1148,7 @@ class ContactListView(QListView):
...
@@ -1148,7 +1148,7 @@ class ContactListView(QListView):
preferred_group
=
(
group
for
group
in
model
.
contact_groups
if
type
(
group
)
is
ContactGroup
)
.
next
()
preferred_group
=
(
group
for
group
in
model
.
contact_groups
if
type
(
group
)
is
ContactGroup
)
.
next
()
except
StopIteration
:
except
StopIteration
:
preferred_group
=
None
preferred_group
=
None
main_window
.
contact_editor
.
open_for_add
(
main_window
.
search_box
.
text
(),
preferred_group
)
main_window
.
contact_editor
_dialog
.
open_for_add
(
main_window
.
search_box
.
text
(),
preferred_group
)
def
_AH_EditItem
(
self
):
def
_AH_EditItem
(
self
):
model
=
self
.
model
()
model
=
self
.
model
()
...
@@ -1158,7 +1158,7 @@ class ContactListView(QListView):
...
@@ -1158,7 +1158,7 @@ class ContactListView(QListView):
self
.
scrollTo
(
index
)
self
.
scrollTo
(
index
)
item
.
widget
.
edit
()
item
.
widget
.
edit
()
else
:
else
:
model
.
main_window
.
contact_editor
.
open_for_edit
(
item
)
model
.
main_window
.
contact_editor
_dialog
.
open_for_edit
(
item
)
def
_AH_DeleteSelection
(
self
):
def
_AH_DeleteSelection
(
self
):
model
=
self
.
model
()
model
=
self
.
model
()
...
@@ -1457,7 +1457,7 @@ class ContactSearchListView(QListView):
...
@@ -1457,7 +1457,7 @@ class ContactSearchListView(QListView):
def
_AH_EditItem
(
self
):
def
_AH_EditItem
(
self
):
model
=
self
.
model
()
model
=
self
.
model
()
contact
=
model
.
data
(
self
.
selectionModel
()
.
selectedIndexes
()[
0
])
contact
=
model
.
data
(
self
.
selectionModel
()
.
selectedIndexes
()[
0
])
model
.
main_window
.
contact_editor
.
open_for_edit
(
contact
)
model
.
main_window
.
contact_editor
_dialog
.
open_for_edit
(
contact
)
def
_AH_DeleteSelection
(
self
):
def
_AH_DeleteSelection
(
self
):
model
=
self
.
model
()
model
=
self
.
model
()
...
...
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