[alacarte] MainWindow: Remove the code that triggers the revert dialog



commit 87c756e4fce7f5b52495c5c85efee3dfeb231394
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jul 17 12:53:58 2012 -0400

    MainWindow: Remove the code that triggers the revert dialog
    
    Missed this, whoops.

 Alacarte/MainWindow.py |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index 6c06366..01c6a6c 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -439,12 +439,7 @@ class MainWindow(object):
         Gtk.show_uri(Gdk.Screen.get_default(), "ghelp:user-guide#menu-editor", Gtk.get_current_event_time())
 
     def on_restore_button_clicked(self, button):
-        dialog = self.tree.get_object('revertdialog')
-        dialog.set_transient_for(self.tree.get_object('mainwindow'))
-        dialog.show_all()
-        if dialog.run() == Gtk.ResponseType.YES:
-            self.editor.restoreToSystem()
-        dialog.hide()
+        self.editor.restoreToSystem()
 
     def on_close_button_clicked(self, button):
         self.quit()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]