Преглед на файлове

Bug 1756: Site folder loses names of its sites

https://winscp.net/tracker/1756

Source commit: dabe20df35693d9dff70e658f008d1796be7f33f
Martin Prikryl преди 6 години
родител
ревизия
7b03eba50b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.