only set explorer theme field when on Vista and the theme is enabled
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index e00d613..f2c06b9 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -3997,9 +3997,9 @@
void setExplorerTheme (boolean explorerTheme) {
if (EXPLORER_THEME) {
- if (this.explorerTheme == explorerTheme) return;
- this.explorerTheme = explorerTheme;
if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) {
+ if (this.explorerTheme == explorerTheme) return;
+ this.explorerTheme = explorerTheme;
int bits1 = OS.GetWindowLong (handle, OS.GWL_STYLE);
int bits2 = OS.SendMessage (handle, OS.TVM_GETEXTENDEDSTYLE, 0, 0);
if (explorerTheme) {