do not hide the roster when we press esc if a row is selected

This commit is contained in:
Yann Leboulanger 2005-09-22 15:13:37 +00:00
parent 85b1dcd9a4
commit 5ea343182c
1 changed files with 3 additions and 1 deletions

View File

@ -1634,7 +1634,9 @@ _('If "%s" accepts this request you will know his status.') %jid)
def on_roster_window_key_press_event(self, widget, event):
if event.keyval == gtk.keysyms.Escape:
if self.plugin.systray_enabled and not gajim.config.get('quit_on_roster_x_button'):
treeselection = self.tree.get_selection()
model, iter = treeselection.get_selected()
if not iter and self.plugin.systray_enabled and not gajim.config.get('quit_on_roster_x_button'):
self.tooltip.hide_tooltip()
self.window.hide()