Browse Source

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

Source commit: e39f177e776f9ee17bdfc770f146b61e8c9f34f9
Martin Prikryl 9 years ago
parent
commit
944153b7db
1 changed files with 1 additions and 1 deletions
  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);