File gnome-reset-bnc545980.patch of Package gnome-reset

diff -ur gnome-reset-0.1.2/gnome-reset.py gnome-reset.patched/gnome-reset.py
--- gnome-reset-0.1.2/gnome-reset.py	2006-01-24 19:10:45.000000000 +0100
+++ gnome-reset.patched/gnome-reset.py	2009-10-10 15:43:29.000000000 +0200
@@ -28,7 +28,7 @@
 def on_dialog_response (dialog, response):
     if response == 0 or response == 1:
         # Ask user for destination directory
-        dialog = gtk.FileChooserDialog ("Select backup directory...", gladeuid.get_widget ("dialog"),
+        dialog = gtk.FileChooserDialog ("Select backup directory...", gladeui.get_widget ("dialog"),
                                         gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER,
                                         (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
                                          gtk.STOCK_OPEN, gtk.RESPONSE_OK))
@@ -36,12 +36,15 @@
 
         response = dialog.run ()
         if (response == gtk.RESPONSE_CANCEL):
+            dialog.destroy()
             return
 
         # Perform backup
         domain_set.backup(dialog.get_filename ())
         if (response == 1):
             domain_set.reset()
+
+        dialog.destroy()
     else:
         gtk.main_quit()