|
@@ -26,7 +26,6 @@ void __fastcall GetLoginData(UnicodeString SessionName, TOptions * Options,
|
|
|
TObjectList * DataList, UnicodeString & DownloadFile, bool NeedSession, TForm * LinkedForm)
|
|
TObjectList * DataList, UnicodeString & DownloadFile, bool NeedSession, TForm * LinkedForm)
|
|
|
{
|
|
{
|
|
|
bool DefaultsOnly = false;
|
|
bool DefaultsOnly = false;
|
|
|
- bool Handled = false;
|
|
|
|
|
|
|
|
|
|
UnicodeString FolderOrWorkspaceName = DecodeUrlChars(SessionName);
|
|
UnicodeString FolderOrWorkspaceName = DecodeUrlChars(SessionName);
|
|
|
if (StoredSessions->IsFolder(FolderOrWorkspaceName) ||
|
|
if (StoredSessions->IsFolder(FolderOrWorkspaceName) ||
|
|
@@ -62,16 +61,12 @@ void __fastcall GetLoginData(UnicodeString SessionName, TOptions * Options,
|
|
|
SessionData->ExpandEnvironmentVariables();
|
|
SessionData->ExpandEnvironmentVariables();
|
|
|
OpenSessionInPutty(GUIConfiguration->PuttyPath, SessionData);
|
|
OpenSessionInPutty(GUIConfiguration->PuttyPath, SessionData);
|
|
|
DataList->Clear();
|
|
DataList->Clear();
|
|
|
- Handled = true;
|
|
|
|
|
|
|
+ Abort();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (Handled)
|
|
|
|
|
- {
|
|
|
|
|
- // noop
|
|
|
|
|
- }
|
|
|
|
|
- else if (DefaultsOnly && !NeedSession)
|
|
|
|
|
|
|
+ if (DefaultsOnly && !NeedSession)
|
|
|
{
|
|
{
|
|
|
// No URL specified on command-line and no explicit command-line parameter
|
|
// No URL specified on command-line and no explicit command-line parameter
|
|
|
// that requires session was specified => noop
|
|
// that requires session was specified => noop
|