浏览代码

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.