[gnome-boxes] wizard: Skip 'Setup' for w/ pure live media



commit 24fe4f33674665e395a312ac4202f8f9757bfa81
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Nov 24 22:31:24 2011 +0200

    wizard: Skip 'Setup' for w/ pure live media
    
    https://bugzilla.gnome.org/show_bug.cgi?id=664766

 src/wizard.vala |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 3d5c7b7..b95d4c1 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -239,9 +239,17 @@ private class Boxes.Wizard: Boxes.UI {
             return;
         }
 
-        var installer = install_media as UnattendedInstaller;
-        installer.populate_setup_vbox (setup_vbox);
-        setup_vbox.show_all ();
+        if (install_media.os_media.installer) {
+            var installer = install_media as UnattendedInstaller;
+            installer.populate_setup_vbox (setup_vbox);
+            setup_vbox.show_all ();
+        } else
+            // No setup required for pure (no installer) live medias
+            Idle.add (() => {
+                page = page + 1;
+
+                return false;
+            });
     }
 
     private void review () {



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