diff --git a/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h b/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h index 7f3754f16b..c9c11989f6 100644 --- a/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h +++ b/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h @@ -235,11 +235,13 @@ private: void showGlobalPathsMenu() { + const bool areAnyModulesSelected = (list.getNumSelectedRows() > 0); + PopupMenu m; m.addItem (1, "Set all modules to use global paths"); m.addItem (2, "Set all modules to not use global paths"); - m.addItem (3, "Set selected modules to use global paths"); - m.addItem (4, "Set selected modules to not use global paths"); + m.addItem (3, "Set selected modules to use global paths", areAnyModulesSelected); + m.addItem (4, "Set selected modules to not use global paths", areAnyModulesSelected); auto res = m.showAt (&globalPathsButton);