summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaroline Rieder2013-02-05 15:46:18 (EST)
committerAndrew Gvozdev2013-02-05 16:45:52 (EST)
commitdcb0d4fe95b9f8f1b32b873974a0d28d4ad3cbde (patch)
treeccbff87cda85eafe879ade3284a9e94806e02e61
parentc3d6f842088b1efa5e97ee11367913b11ddc6e7e (diff)
downloadorg.eclipse.cdt-dcb0d4fe95b9f8f1b32b873974a0d28d4ad3cbde.zip
org.eclipse.cdt-dcb0d4fe95b9f8f1b32b873974a0d28d4ad3cbde.tar.gz
org.eclipse.cdt-dcb0d4fe95b9f8f1b32b873974a0d28d4ad3cbde.tar.bz2
bug 399906: Unable to unset "Use global provider" in Providers tab of Preprocessor Include paths
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java
index 078e30c..1f57858 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java
@@ -483,7 +483,7 @@ public class LanguageSettingsProviderTab extends AbstractCPropertyTab {
} else {
// Toggle to configuration-owned provider
newProvider = getInitialProvider(id);
- if(newProvider == null) {
+ if(newProvider == null || LanguageSettingsManager.isWorkspaceProvider(newProvider)) {
try {
ILanguageSettingsProvider rawProvider = LanguageSettingsManager.getRawProvider(provider);
if (rawProvider instanceof ILanguageSettingsEditableProvider) {