[gnome-boxes] wizard: Only enable 'Continue' for valid URIs
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard: Only enable 'Continue' for valid URIs
- Date: Tue, 17 Feb 2015 14:28:54 +0000 (UTC)
commit e4080c518d83c251322548adba5d4164a5e3ed55
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Feb 16 17:29:58 2015 +0000
wizard: Only enable 'Continue' for valid URIs
We currently enable the 'Continue' button as soon as URL entry in
non-empty. Lets not enable it until we have a validated URI in the entry.
src/wizard.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index cb2c0d9..8b55c8f 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -164,7 +164,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
break;
case Boxes.SourcePage.URL:
- next_button.sensitive = wizard_source.uri.length != 0;
+ next_button.sensitive = false;
var text = _("Please enter desktop or collection URI");
var icon = "preferences-desktop-remote-desktop";
@@ -177,6 +177,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
} else
text = _("Will add a single box.");
+ next_button.sensitive = true;
} catch (GLib.Error error) {
// ignore any parsing error
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]