[gnome-boxes] wizard-source: Keep URI on cleanup if on URL page



commit 07f2d91ce2b7656fd2a059e384de669a9efb0ea4
Author: Radu Stochitoiu <radu stochitoiu gmail com>
Date:   Mon Mar 28 20:46:26 2016 +0300

    wizard-source: Keep URI on cleanup if on URL page
    
    Navigating back to the source page in wizard, has the side effect of
    cleaning-up the wizard source. This means also clearing the URI, which
    is very unfriendly to user who could have painstakenly hand written the
    URI but made a small mistake while doing so, and wants to go back to
    simply fix his/her minor mistake.
    
    So let's not clear the UI as part of wizard source clean-up if source is
    on URL page.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747855

 src/wizard-source.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index ea1e95c..eb99882 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -209,7 +209,8 @@ private class Boxes.WizardSource: Gtk.Stack {
         install_media = null;
         libvirt_sys_import = false;
         selected = null;
-        uri = "";
+        if(page != SourcePage.URL)
+            uri = "";
     }
 
     [GtkCallback]


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