Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
1ed3a31f
Commit
1ed3a31f
authored
Sep 19, 2006
by
dkirov
Browse files
[anonymous] fix bug of renaming contact from
contextmenu
parent
1463ca82
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/roster_window.py
View file @
1ed3a31f
...
...
@@ -1343,7 +1343,7 @@ class RosterWindow:
'''Make contact's popup menu'''
model
=
self
.
tree
.
get_model
()
jid
=
model
[
iter
][
C_JID
].
decode
(
'utf-8'
)
path
=
model
.
get_path
(
iter
)
tree_
path
=
model
.
get_path
(
iter
)
account
=
model
[
iter
][
C_ACCOUNT
].
decode
(
'utf-8'
)
our_jid
=
jid
==
gajim
.
get_jid_from_account
(
account
)
contact
=
gajim
.
contacts
.
get_contact_with_highest_priority
(
account
,
jid
)
...
...
@@ -1422,7 +1422,7 @@ class RosterWindow:
else
:
# one resource
start_chat_menuitem
.
connect
(
'activate'
,
self
.
on_roster_treeview_row_activated
,
path
)
self
.
on_roster_treeview_row_activated
,
tree_
path
)
if
contact
.
resource
:
send_file_menuitem
.
connect
(
'activate'
,
...
...
@@ -1463,7 +1463,7 @@ class RosterWindow:
menuitem
.
connect
(
'activate'
,
self
.
on_invite_to_room
,
[(
contact
,
account
)],
room_jid
,
acct
)
submenu
.
append
(
menuitem
)
rename_menuitem
.
connect
(
'activate'
,
self
.
on_rename
,
iter
,
path
)
rename_menuitem
.
connect
(
'activate'
,
self
.
on_rename
,
iter
,
tree_
path
)
remove_from_roster_menuitem
.
connect
(
'activate'
,
self
.
on_req_usub
,
[(
contact
,
account
)])
information_menuitem
.
connect
(
'activate'
,
self
.
on_info
,
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