diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-03 18:48:42 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-03 18:48:42 +0200 |
| commit | b2f8a1f1a9408b674a06e34c140f58a9ae109360 (patch) | |
| tree | 9062152ca8b4b63646b1a8e170e9d73412b865c6 /UMain.pas | |
| parent | 0654e549d1f8252deb9c598b19299e0c599f5fec (diff) | |
| download | tuxcmd-b2f8a1f1a9408b674a06e34c140f58a9ae109360.tar.xz | |
Remember custom plugin from Quick Connect dialog and pre-fill it in Connection Properties dialog when saving unsaved connection
Diffstat (limited to 'UMain.pas')
| -rw-r--r-- | UMain.pas | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -6066,6 +6066,7 @@ var Buttons: TMessageButtons; AFConnectionProperties: TFConnectionProperties; URI: string; ConnMgrItem: TConnMgrItem; + i: integer; begin Result := True; URI := Engine.GetPathURI; @@ -6081,6 +6082,10 @@ begin AFConnectionProperties := TFConnectionProperties.Create(Self); try AFConnectionProperties.URIEntry.Text := URI; + if (Engine.CustomPluginIDSave <> '') and (AFConnectionProperties.PluginOptionMenu.Items.Count > 0) then + for i := 0 to PluginList.Count - 1 do + if TVFSPlugin(PluginList[i]).VFSName = Engine.CustomPluginIDSave + then AFConnectionProperties.PluginOptionMenu.ItemIndex := i + 1; if AFConnectionProperties.Run = mbOK then begin ReadConnections; ConnMgrItem := TConnMgrItem.Create; |
