浏览代码

Bug fix: Script and .NET assembly code tabs were not hidden on Generate file URL dialog

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

+ 2 - 2
source/forms/GenerateUrl.cpp

@@ -72,8 +72,8 @@ void __fastcall TGenerateUrlDialog::UpdateControls()
   {
     Caption = LoadStr(IsFileUrl() ? GENERATE_URL_FILE_TITLE : GENERATE_URL_SESSION_TITLE);
 
-    EnableControl(ScriptSheet, !IsFileUrl());
-    EnableControl(AssemblySheet, !IsFileUrl());
+    ScriptSheet->TabVisible = !IsFileUrl();
+    AssemblySheet->TabVisible = !IsFileUrl();
 
     UnicodeString ResultGroupCaption;
     if (OptionsPageControl->ActivePage == UrlSheet)