[gnome-boxes/gnome-3-12] wizard: Don't try to create the box in two places



commit baca26a1484d7a84b98ebcda7f08d4bc1c4fbeab
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed May 21 19:11:15 2014 +0100

    wizard: Don't try to create the box in two places
    
    'Create' button should only set the appropriate wizard page as the
    appropriate page setter already handles the box creation.

 src/wizard.vala |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index a685a76..e544763 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -551,12 +551,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
         });
         create_button = App.window.topbar.wizard_create_btn;
         create_button.clicked.connect (() => {
-            create.begin ((obj, result) => {
-            if (create.end (result))
-                App.app.set_state (UIState.COLLECTION);
-            else
-                App.window.notificationbar.display_error (_("Box creation failed"));
-            });
+            page = WizardPage.LAST;
         });
     }
 


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