Explorar o código

Bug 1756: Site folder loses names of its sites

https://winscp.net/tracker/1756

Source commit: dabe20df35693d9dff70e658f008d1796be7f33f
Martin Prikryl %!s(int64=6) %!d(string=hai) anos
pai
achega
7b03eba50b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      source/core/SessionData.cpp

+ 1 - 1
source/core/SessionData.cpp

@@ -4859,7 +4859,7 @@ void __fastcall TStoredSessionList::GetFolderOrWorkspace(const UnicodeString & N
       {
         Data2->Name = RawData->NameOverride;
       }
-      else if (RawData->Link.IsEmpty())
+      else if (RawData->Link.IsEmpty() && RawData->IsWorkspace)
       {
         // Newly opened ad-hoc session has no name, so restore the workspace that way too.
         // Otherwise we would persist the generated internal workspace name as a real name.