Allow ports to be specified once again. Fixes #555

This commit is contained in:
Hylke Bons 2012-01-23 23:50:54 +00:00
parent 0567919fdc
commit 5ef5107b62
2 changed files with 7 additions and 5 deletions

View file

@ -51,7 +51,7 @@ namespace SparkleLib {
if (!uri.Scheme.Equals ("ssh") &&
!uri.Scheme.Equals ("git")) {
uri = new Uri ("ssh://" + server);
uri = new Uri ("ssh://" + uri);
}
@ -72,8 +72,10 @@ namespace SparkleLib {
uri = new Uri ("ssh://git@gnome.org/git" + uri.AbsolutePath);
} else {
if (string.IsNullOrEmpty (uri.UserInfo))
uri = new Uri (uri.Scheme + "://git@" + uri.Host + uri.AbsolutePath);
if (string.IsNullOrEmpty (uri.UserInfo)) {
uri = new Uri (uri.Scheme + "://git@" + uri.Host + ":" + uri.Port + uri.AbsolutePath);
uri = new Uri (uri.ToString ().Replace (":-1", ""));
}
}

View file

@ -71,9 +71,9 @@ namespace SparkleShare {
this.hidden_close_button = new NSButton () {
Frame = new RectangleF (0, 0, 0, 0)
Frame = new RectangleF (0, 0, 0, 0),
KeyEquivalentModifierMask = NSEventModifierMask.CommandKeyMask,
KeyEquivalent = "w",
KeyEquivalent = "w"
};
this.hidden_close_button.Activated += delegate {