[gitg] Check the url introduced is supported
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Check the url introduced is supported
- Date: Tue, 16 Apr 2013 14:10:23 +0000 (UTC)
commit 373d9ad1ffbae78a9f3fff8ce2253092e5837359
Author: Jose Manuel Pintor Freire <jmpintorfreire gmail com>
Date: Tue Apr 16 16:06:58 2013 +0200
Check the url introduced is supported
gitg/gitg-window.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 3d3b02a..04f9aa5 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -208,7 +208,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
dlg.set_transient_for(this);
entry_url.changed.connect((e) => {
- dlg.set_response_sensitive(Gtk.ResponseType.OK, entry_url.text_length > 0);
+ dlg.set_response_sensitive(Gtk.ResponseType.OK,
Ggit.Remote.is_supported_url(entry_url.get_text()));
});
dlg.response.connect((d, id) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]