[gnome-boxes] wizard: Unset collection source on main page



commit 00294f2e158d669683f35774447c912ede62153c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Oct 16 15:59:55 2012 +0300

    wizard: Unset collection source on main page
    
    Instead of unsetting collection source just before preparing for a URI,
    we now do it each time user goes to main page of wizard source. With
    former approach, we don't unset collection source if user first enters
    URI manually, changes his/her mind at 'Review', goes back to 'Source' and
    chooses a ready media on the main page.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684219

 src/wizard.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index b37e195..2217a17 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -137,6 +137,7 @@ private class Boxes.Wizard: Boxes.UI {
         switch (wizard_source.page) {
         case Boxes.SourcePage.MAIN:
             next_button.sensitive = wizard_source.selected != null;
+            source = null;
             break;
 
         case Boxes.SourcePage.URL:
@@ -220,8 +221,6 @@ private class Boxes.Wizard: Boxes.UI {
     }
 
     private void prepare_for_location (string location, bool probing = false) throws GLib.Error {
-        source = null;
-
         if (location == "")
             throw new Boxes.Error.INVALID ("empty location");
 



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