diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-03 20:08:12 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-03 20:08:12 +0200 |
| commit | c36919073910a98ddf1b8008227e0f5ede1a53bb (patch) | |
| tree | f3972bc56a710c9bf02dbe3a89b776a6a37bed51 /UQuickConnect.pas | |
| parent | 8fb18e8b91f9d0fe4c7d7df34989554c905fcfa8 (diff) | |
| download | tuxcmd-c36919073910a98ddf1b8008227e0f5ede1a53bb.tar.xz | |
Parse out password from URI entered in the Quick Connect dialog and reuse it on first password prompt
Diffstat (limited to 'UQuickConnect.pas')
| -rw-r--r-- | UQuickConnect.pas | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/UQuickConnect.pas b/UQuickConnect.pas index 8234edd..7533bd4 100644 --- a/UQuickConnect.pas +++ b/UQuickConnect.pas @@ -268,7 +268,7 @@ procedure TFQuickConnect.DoConnect; var Engine: TVFSEngine; i, j: integer; VFSPlugin: TVFSPlugin; - Scheme: string; + URI, Scheme: string; begin if ConnectionManager <> nil then AFConnectionManager := ConnectionManager else AFConnectionManager := TFConnectionManager.Create(Self); @@ -321,8 +321,10 @@ begin Engine.SavePath := SourcePanelEngine.Path; Engine.OpenedFromQuickConnect := True; Engine.CustomPluginIDSave := ConfQuickConnectPluginID; + URI := URIComboBox.Entry.Text; + Engine.Password := URIRipPassword(URI, True); - if not AFConnectionManager.DoConnectInternal(URIComboBox.Entry.Text, Engine, FWidget) then begin + if not AFConnectionManager.DoConnectInternal(URI, Engine, FWidget, True) then begin if not AFConnectionManager.FSilenceError then Application.MessageBox(PGtkWindow(FWidget), LANGCouldntOpenURI, [mbOK], mbError, mbOK, mbOK); Table.Enabled := True; CloseButton.Enabled := True; |
