Allow ports to be specified once again. Fixes #555
This commit is contained in:
parent
7e29ca9cf7
commit
602ffa2280
|
@ -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", ""));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue