[gnome-boxes] wizard: Don't validate empty URI



commit 2a52b219f29cce4cd17fba6711e019a193fa89dc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Feb 16 17:34:22 2015 +0000

    wizard: Don't validate empty URI
    
    There is no point in validating empty URIs.

 src/wizard.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 8b55c8f..7f3a87c 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -165,6 +165,8 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
 
         case Boxes.SourcePage.URL:
             next_button.sensitive = false;
+            if (wizard_source.uri.length == 0)
+                return;
 
             var text = _("Please enter desktop or collection URI");
             var icon = "preferences-desktop-remote-desktop";


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