Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sophie Herold
gajim
Commits
fa75bded
Commit
fa75bded
authored
8 years ago
by
lovetox
Browse files
Options
Downloads
Patches
Plain Diff
Display version/os information correctly in VCard window
On contacts with multiple resources, not all information was displayed.
parent
1b4360a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vcard.py
+30
-15
30 additions, 15 deletions
src/vcard.py
with
30 additions
and
15 deletions
src/vcard.py
+
30
−
15
View file @
fa75bded
...
...
@@ -312,16 +312,29 @@ class VcardWindow:
return
if
self
.
xml
.
get_object
(
'
information_notebook
'
).
get_n_pages
()
<
5
:
return
if
obj
.
fjid
!=
self
.
contact
.
jid
and
obj
.
fjid
!=
self
.
real_jid
:
if
self
.
gc_contact
:
if
obj
.
fjid
!=
self
.
contact
.
jid
:
return
elif
gajim
.
get_jid_without_resource
(
obj
.
fjid
)
!=
self
.
contact
.
jid
:
return
i
=
0
client
=
''
os
=
''
while
i
in
self
.
os_info
:
if
not
self
.
os_info
[
i
][
'
resource
'
]
or
\
self
.
os_info
[
i
][
'
resource
'
]
==
obj
.
resource
:
self
.
os_info
[
i
][
'
client
'
]
=
obj
.
client_info
self
.
os_info
[
i
][
'
os
'
]
=
obj
.
os_info
if
self
.
os_info
[
i
][
'
resource
'
]
==
obj
.
resource
:
if
obj
.
client_info
:
self
.
os_info
[
i
][
'
client
'
]
=
obj
.
client_info
else
:
self
.
os_info
[
i
][
'
client
'
]
=
Q_
(
'
?Client:Unknown
'
)
if
obj
.
os_info
:
self
.
os_info
[
i
][
'
os
'
]
=
obj
.
os_info
else
:
self
.
os_info
[
i
][
'
os
'
]
=
Q_
(
'
?OS:Unknown
'
)
else
:
if
not
self
.
os_info
[
i
][
'
client
'
]:
self
.
os_info
[
i
][
'
client
'
]
=
Q_
(
'
?Client:Unknown
'
)
if
not
self
.
os_info
[
i
][
'
os
'
]:
self
.
os_info
[
i
][
'
os
'
]
=
Q_
(
'
?OS:Unknown
'
)
if
i
>
0
:
client
+=
'
\n
'
os
+=
'
\n
'
...
...
@@ -329,10 +342,6 @@ class VcardWindow:
os
+=
self
.
os_info
[
i
][
'
os
'
]
i
+=
1
if
client
==
''
:
client
=
Q_
(
'
?Client:Unknown
'
)
if
os
==
''
:
os
=
Q_
(
'
?OS:Unknown
'
)
self
.
xml
.
get_object
(
'
client_name_version_label
'
).
set_text
(
client
)
self
.
xml
.
get_object
(
'
os_label
'
).
set_text
(
os
)
self
.
os_info_arrived
=
True
...
...
@@ -342,21 +351,27 @@ class VcardWindow:
return
if
self
.
xml
.
get_object
(
'
information_notebook
'
).
get_n_pages
()
<
5
:
return
if
obj
.
fjid
!=
self
.
contact
.
jid
and
obj
.
fjid
!=
self
.
real_jid
:
if
self
.
gc_contact
:
if
obj
.
fjid
!=
self
.
contact
.
jid
:
return
elif
gajim
.
get_jid_without_resource
(
obj
.
fjid
)
!=
self
.
contact
.
jid
:
return
i
=
0
time_s
=
''
while
i
in
self
.
time_info
:
if
not
self
.
time_info
[
i
][
'
resource
'
]
or
\
self
.
time_info
[
i
][
'
resource
'
]
==
obj
.
resource
:
self
.
time_info
[
i
][
'
time
'
]
=
obj
.
time_info
if
self
.
time_info
[
i
][
'
resource
'
]
==
obj
.
resource
:
if
obj
.
time_info
:
self
.
time_info
[
i
][
'
time
'
]
=
obj
.
time_info
else
:
self
.
time_info
[
i
][
'
time
'
]
=
Q_
(
'
?Time:Unknown
'
)
else
:
if
not
self
.
time_info
[
i
][
'
time
'
]:
self
.
time_info
[
i
][
'
time
'
]
=
Q_
(
'
?Time:Unknown
'
)
if
i
>
0
:
time_s
+=
'
\n
'
time_s
+=
self
.
time_info
[
i
][
'
time
'
]
i
+=
1
if
time_s
==
''
:
time_s
=
Q_
(
'
?Time:Unknown
'
)
self
.
xml
.
get_object
(
'
time_label
'
).
set_text
(
time_s
)
self
.
entity_time_arrived
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment