Pārlūkot izejas kodu

Error when loaded configuration uses custom INI file

Source commit: 7c061a92371438e1c3eb36c0af311cd0edab0729
Martin Prikryl 8 gadi atpakaļ
vecāks
revīzija
1aa24291df
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6 2
      source/forms/Preferences.cpp

+ 6 - 2
source/forms/Preferences.cpp

@@ -2875,7 +2875,11 @@ void __fastcall TPreferencesDialog::CustomIniFileStorageEditAfterDialog(TObject
 void __fastcall TPreferencesDialog::CustomIniFileStorageButtonClick(TObject * /*Sender*/)
 {
   UpdateControls();
-  // Focus to force validation
-  CustomIniFileStorageEdit->SetFocus();
+  // Handler is shown also when Checked is set from LoadConfiguration
+  if (FNoUpdate == 0)
+  {
+    // Focus to force validation
+    CustomIniFileStorageEdit->SetFocus();
+  }
 }
 //---------------------------------------------------------------------------