[gnome-boxes] Always reset wizard source page when moving forward



commit 376af92c5dc8001ca1a2917efa668111431771b8
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Sat Jun 9 00:16:31 2012 +0200

    Always reset wizard source page when moving forward
    
    Always show the SourcePage.MAIN when switching to wizard SOURCE
    page from INTRODUCTION.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677034

 src/wizard.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 7334520..8510ba0 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -51,6 +51,11 @@ private class Boxes.Wizard: Boxes.UI {
 
             if (forwards) {
                 switch (value) {
+                case WizardPage.SOURCE:
+                    wizard_source.selected = null;
+                    wizard_source.page = SourcePage.MAIN;
+                    break;
+
                 case WizardPage.PREPARATION:
                     if (!prepare ())
                         return;



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