浏览代码

When group (Site/Shared) to which new location profile is added is changed, switching the page to the target group

Source commit: e53ea7722cc95fd74d11f8b4abbff0b289a66e0c
Martin Prikryl 3 年之前
父节点
当前提交
5ca1f4b1c2
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      source/forms/LocationProfiles.cpp

+ 3 - 2
source/forms/LocationProfiles.cpp

@@ -533,8 +533,9 @@ bool __fastcall TLocationProfilesDialog::AddAsBookmark(TObject * Sender, bool In
         if (Initial)
         {
           WinConfiguration->UseSharedBookmarks = Shared;
-          BookmarkList = GetBookmarkList(GetProfilesSheet());
-          ProfilesView = GetProfilesView(GetProfilesSheet());
+          PageControl->ActivePage = GetProfilesSheet();
+          BookmarkList = GetBookmarkList(PageControl->ActivePage);
+          ProfilesView = GetProfilesView(PageControl->ActivePage);
         }
 
         TBookmark * Bookmark = BookmarkList->FindByName(SelectedNode, BookmarkName);