Show
Ignore:
Timestamp:
08/31/07 18:26:38 (15 months ago)
Author:
asterix
Message:

[elghinn] ask confirmation when we close the ad hoc window in the middle of a command

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/adhoc_commands.py

    r8633 r8671  
    5454                self.xml = gtkgui_helpers.get_glade('adhoc_commands_window.glade') 
    5555                self.window = self.xml.get_widget('adhoc_commands_window') 
     56                self.window.connect('delete-event', self.on_adhoc_commands_window_delete_event) 
    5657                for name in ('back_button', 'forward_button', 
    5758                        'execute_button','close_button','stages_notebook', 
     
    102103 
    103104        def on_adhoc_commands_window_delete_event(self, *anything): 
    104                 return self.stage_adhoc_commands_window_delete_event(self, *anything) 
     105                return self.stage_adhoc_commands_window_delete_event(self.window) 
    105106 
    106107        def __del__(self): 
     
    253254                                self.window.destroy() 
    254255                        return False 
     256                return True 
    255257 
    256258        def stage3_back_button_clicked(self, widget):