Jelajahi Sumber

Bug fix: It was possible to load again the first extension in an extension folder

Source commit: e39f177e776f9ee17bdfc770f146b61e8c9f34f9
Martin Prikryl 9 tahun lalu
induk
melakukan
944153b7db
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      source/forms/Preferences.cpp

+ 1 - 1
source/forms/Preferences.cpp

@@ -2521,7 +2521,7 @@ void __fastcall TPreferencesDialog::AddExtension()
     if (!ExtensionPath.IsEmpty())
     {
       int Index = FExtensionList->FindIndexByFileName(Path);
-      if (Index > 0)
+      if (Index >= 0)
       {
         CustomCommandsView->ItemIndex = GetCommandListIndex(FExtensionList, Index);
         CustomCommandsView->ItemFocused->MakeVisible(false);