diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-10-21 01:38:06 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-10-21 01:38:06 +0400 |
commit | 06ab4a7b6dd3d2f9db0d5df1f1cfe0dd635d96bc (patch) | |
tree | 04072fc88ede31308beb5e63f2afaeff9a787414 /src/history_manager.py | |
parent | f801a50260a7f7748952b6c88f065575bcac547c (diff) |
revert thorstenp patches for now. They introduce bugs.
Diffstat (limited to 'src/history_manager.py')
-rwxr-xr-x | src/history_manager.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/history_manager.py b/src/history_manager.py index 472f31733..2dd20f5c6 100755 --- a/src/history_manager.py +++ b/src/history_manager.py @@ -220,7 +220,7 @@ class HistoryManager: def on_no(): gtk.main_quit() - dialogs.YesNoDialog( + dialog = dialogs.YesNoDialog( _('Do you want to clean up the database? ' '(STRONGLY NOT RECOMMENDED IF GAJIM IS RUNNING)'), _('Normally allocated database size will not be freed, ' @@ -296,7 +296,7 @@ class HistoryManager: (user will see the first pm as if it was message in room's public chat) and after that all okay''' - possible_room_jid = jid.split('/', 1)[0] + possible_room_jid, possible_nick = jid.split('/', 1) self.cur.execute('SELECT jid_id FROM jids WHERE jid = ? AND type = ?', (possible_room_jid, constants.JID_ROOM_TYPE)) @@ -421,6 +421,9 @@ class HistoryManager: xml.get_widget('delete_menuitem').connect('activate', self.on_delete_menuitem_activate, widget) + liststore, list_of_paths = self.jids_listview.get_selection()\ + .get_selected_rows() + xml.signal_autoconnect(self) xml.get_widget('context_menu').popup(None, None, None, event.button, event.time) |