Skip to content

Commit

Permalink
Bug 1690: Background transfer settings are not preserved
Browse files Browse the repository at this point in the history
https://winscp.net/tracker/1690

Caused by c16fd9a

Source commit: 230a0f6674b775396272bc9701eaf620472698ca
  • Loading branch information
martinprikryl committed Oct 19, 2018
1 parent 7647aa1 commit 3cf2bbe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions source/core/CopyParam.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class TCopyParamType
bool Directory, const TFileMasks::TParams & Params, bool Hidden) const;
bool __fastcall SkipTransfer(UnicodeString FileName, bool Directory) const;

void __fastcall Load(THierarchicalStorage * Storage);
void __fastcall Save(THierarchicalStorage * Storage, const TCopyParamType * Defaults = NULL) const;
virtual void __fastcall Load(THierarchicalStorage * Storage);
virtual void __fastcall Save(THierarchicalStorage * Storage, const TCopyParamType * Defaults = NULL) const;
UnicodeString __fastcall GetInfoStr(UnicodeString Separator, int Attrs) const;
bool __fastcall AnyUsableCopyParam(int Attrs) const;
UnicodeString __fastcall GenerateTransferCommandArgs(int Attrs, const UnicodeString & Link) const;
Expand Down
5 changes: 3 additions & 2 deletions source/windows/GUIConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ void __fastcall TGUICopyParamType::Load(THierarchicalStorage * Storage)
QueueParallel = Storage->ReadBool(L"QueueParallel", QueueParallel);
}
//---------------------------------------------------------------------------
void __fastcall TGUICopyParamType::Save(THierarchicalStorage * Storage)
void __fastcall TGUICopyParamType::Save(THierarchicalStorage * Storage, const TCopyParamType * Defaults) const
{
TCopyParamType::Save(Storage);
DebugAssert(Defaults == NULL);
TCopyParamType::Save(Storage, Defaults);

Storage->WriteBool(L"Queue", Queue);
Storage->WriteBool(L"QueueNoConfirmation", QueueNoConfirmation);
Expand Down
4 changes: 2 additions & 2 deletions source/windows/GUIConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class TGUICopyParamType : public TCopyParamType
__fastcall TGUICopyParamType(const TCopyParamType & Source);
__fastcall TGUICopyParamType(const TGUICopyParamType & Source);

void __fastcall Load(THierarchicalStorage * Storage);
void __fastcall Save(THierarchicalStorage * Storage);
virtual void __fastcall Load(THierarchicalStorage * Storage);
virtual void __fastcall Save(THierarchicalStorage * Storage, const TCopyParamType * Defaults = NULL) const;

virtual void __fastcall Default();
virtual void __fastcall Assign(const TCopyParamType * Source);
Expand Down

0 comments on commit 3cf2bbe

Please sign in to comment.