Browse Source

Factoring out HELP_FILTER

Source commit: 82b6f2701aa2484346251e22315c3b3350833d19
Martin Prikryl 8 years ago
parent
commit
efb4c75c44
2 changed files with 3 additions and 1 deletions
  1. 2 1
      source/forms/SelectMask.cpp
  2. 1 0
      source/resource/HelpWin.h

+ 2 - 1
source/forms/SelectMask.cpp

@@ -6,6 +6,7 @@
 #include <FileMasks.h>
 #include <CoreMain.h>
 #include <TextsWin.h>
+#include <HelpWin.h>
 #include <Tools.h>
 #include <VCLCommon.h>
 
@@ -99,7 +100,7 @@ void __fastcall TSelectMaskDialog::Init(TMode Mode)
     case smFilter:
       CaptionStr = FILTER_MASK_CAPTION;
       ApplyToDirectoriesCheck->Hide();
-      HelpKeyword = L"ui_filter";
+      HelpKeyword = HELP_FILTER;
       break;
   }
   Caption = LoadStr(CaptionStr);

+ 1 - 0
source/resource/HelpWin.h

@@ -59,5 +59,6 @@
 #define HELP_DEBUGGING               "debugging"
 #define HELP_EXTENSION_OPTIONS       "ui_pref_commands"
 #define HELP_CHANGE_PASSWORD         "task_change_password"
+#define HELP_FILTER                  "ui_filter"
 
 #endif // TextsWin