From 100a3dd1f350bda3f23e551e422745fd60c1b884 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 28 Dec 2017 15:04:23 +0000 Subject: [PATCH] Projucer: Disable multi-select module options when no modules are selected --- .../Source/Project/UI/jucer_ModulesInformationComponent.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);