瀏覽代碼

Bug fix: With no connected session, shared bookmarks modifications are not preserved

Source commit: 5f2d27708e8b7262214ef3426afe6249df737daf
Martin Prikryl 5 年之前
父節點
當前提交
9bf2852189
共有 1 個文件被更改,包括 6 次插入9 次删除
  1. 6 9
      source/forms/OpenDirectory.cpp

+ 6 - 9
source/forms/OpenDirectory.cpp

@@ -254,16 +254,13 @@ bool __fastcall TOpenDirectoryDialog::Execute()
 
   FBookmarkSelected = false;
   Result = (ShowModal() == DefaultResult(this));
-  if (Terminal)
+  WinConfiguration->SharedBookmarks = FSharedBookmarkList;
+  if (Terminal != NULL)
   {
-    WinConfiguration->SharedBookmarks = FSharedBookmarkList;
-    if (Terminal != NULL)
-    {
-      WinConfiguration->Bookmarks[SessionKey] = FSessionBookmarkList;
-      // Do not remember that shared page was selected,
-      // if it was selected implicitly because there's no site page.
-      WinConfiguration->UseSharedBookmarks = (PageControl->ActivePage == SharedBookmarksSheet);
-    }
+    WinConfiguration->Bookmarks[SessionKey] = FSessionBookmarkList;
+    // Do not remember that shared page was selected,
+    // if it was selected implicitly because there's no site page.
+    WinConfiguration->UseSharedBookmarks = (PageControl->ActivePage == SharedBookmarksSheet);
   }
   if (Result)
   {