when we add a bookmark, we add our nick by default
This commit is contained in:
parent
b60b488233
commit
e69bbc235f
1 changed files with 4 additions and 2 deletions
|
@ -2290,7 +2290,7 @@ class ManageBookmarksWindow:
|
||||||
def on_manage_bookmarks_window_destroy(self, widget, event):
|
def on_manage_bookmarks_window_destroy(self, widget, event):
|
||||||
del gajim.interface.instances['manage_bookmarks']
|
del gajim.interface.instances['manage_bookmarks']
|
||||||
|
|
||||||
def on_add_bookmark_button_clicked(self,widget):
|
def on_add_bookmark_button_clicked(self, widget):
|
||||||
'''
|
'''
|
||||||
Add a new bookmark.
|
Add a new bookmark.
|
||||||
'''
|
'''
|
||||||
|
@ -2310,7 +2310,9 @@ class ManageBookmarksWindow:
|
||||||
add_to = iter
|
add_to = iter
|
||||||
|
|
||||||
account = model.get_value(add_to, 1)
|
account = model.get_value(add_to, 1)
|
||||||
self.treestore.append(add_to, [account,_('New Room'), '', False, '', ''])
|
nick = gajim.nicks[account]
|
||||||
|
self.treestore.append(add_to, [account, _('New Room'), '', False, '',
|
||||||
|
nick])
|
||||||
|
|
||||||
self.view.expand_row(model.get_path(add_to), True)
|
self.view.expand_row(model.get_path(add_to), True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue