浏览代码

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

Source commit: e39f177e776f9ee17bdfc770f146b61e8c9f34f9
Martin Prikryl 9 年之前
父节点
当前提交
944153b7db
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);