Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
TortoiseHg
thg-hgtk
Commits
c31c5c69803a
Commit
bb595b91
authored
Dec 06, 2010
by
Steve Borho
Browse files
sync: disable authentication dialog when URL is ssh://
parent
9ae2bb75ed50
Changes
1
Hide whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/sync.py
View file @
c31c5c69
...
...
@@ -243,10 +243,10 @@ class SyncWidget(QWidget):
if
self
.
updateInProgress
:
return
self
.
urllabel
.
setText
(
self
.
currentUrl
(
True
))
notlocal
=
(
self
.
schemecombo
.
currentIndex
()
!=
0
)
self
.
hostentry
.
setEnabled
(
notlocal
)
self
.
portentry
.
setEnabled
(
notlocal
)
self
.
authbutton
.
setEnabled
(
notlocal
)
schemeIndex
=
self
.
schemecombo
.
currentIndex
()
self
.
hostentry
.
setEnabled
(
schemeIndex
!=
0
)
self
.
portentry
.
setEnabled
(
schemeIndex
!=
0
)
self
.
authbutton
.
setEnabled
(
schemeIndex
>
1
)
def
currentUrl
(
self
,
hidepw
):
scheme
=
_schemes
[
self
.
schemecombo
.
currentIndex
()]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment