diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-12 15:50:20 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-12 15:50:20 +0200 |
| commit | f35af507573469b7c1692f01922d323bd1000fbc (patch) | |
| tree | 619e72d4aa486bc97974293cf045f263e98263b6 /UCore.pas | |
| parent | b417ac914af5e3dfeb27eb5bde6210f88c5b9ec4 (diff) | |
| download | tuxcmd-f35af507573469b7c1692f01922d323bd1000fbc.tar.xz | |
Connection Manager password callback improvements
Diffstat (limited to 'UCore.pas')
| -rw-r--r-- | UCore.pas | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -193,9 +193,9 @@ type TMounterItem = class TConnMgrItem = class public ConnectionName: string; - URI: string; // generated at runtime ServiceType, Server, Username, Password, TargetDir: string; PluginID: string; // leave blank for default + function GetURI(IncludePassword: boolean): string; end; procedure FillDefaultFstabMounterItems; @@ -2678,7 +2678,7 @@ var Thread: TOpenDirThread; begin if pthread_self = Application.ThreadID then begin DebugMsg(['!! (WARNING): vfs_ask_question_callback called from the main thread, expected spawn from a OpenDirThread']); - HandleVFSAskQuestionCallback(nil, AMessage, Choices, choice); + HandleVFSAskQuestionCallback(FMain.FWidget, AMessage, Choices, choice); Exit; end; @@ -2706,7 +2706,7 @@ var Thread: TOpenDirThread; begin if pthread_self = Application.ThreadID then begin DebugMsg(['!! (WARNING): vfs_ask_password_callback called from the main thread, expected spawn from a OpenDirThread']); - Result := HandleVFSAskPasswordCallback(nil, AMessage, default_user, default_domain, flags, username, password, anonymous, domain, password_save); + Result := HandleVFSAskPasswordCallback(FMain.FWidget, AMessage, default_user, default_domain, flags, username, password, anonymous, domain, password_save); Exit; end; @@ -2850,6 +2850,13 @@ begin end; +(********************************************************************************************************************************) +(********************************************************************************************************************************) +function TConnMgrItem.GetURI(IncludePassword: boolean): string; +begin + Result := ConstructURI(IncludePassword, False, ServiceType, Server, Username, Password, TargetDir); +end; + (********************************************************************************************************************************) (********************************************************************************************************************************) |
