aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhishek Kishore2014-04-28 10:46:51 (EDT)
committerNiraj Modi2014-07-07 01:05:02 (EDT)
commit346e516fd49e5d732af4c82575d10fcf693d38c9 (patch)
tree11509a3372f0cedb9a03e974e700b48d66f0a49f
parentdfa0e6e08e78ca3997697d7afcacc5bc1b6607d2 (diff)
downloadeclipse.platform.swt-346e516fd49e5d732af4c82575d10fcf693d38c9.zip
eclipse.platform.swt-346e516fd49e5d732af4c82575d10fcf693d38c9.tar.gz
eclipse.platform.swt-346e516fd49e5d732af4c82575d10fcf693d38c9.tar.bz2
Bug 433486 - Can't open FileDialog on OS X 10.9v4500brefs/changes/48/28548/4
Change-Id: Ic386716745ad7583b5ce32b97a44a70bda807f5d Signed-off-by: Abhishek Kishore <abhishek.kishore@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java
index d6281e8..b14a5fe 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -341,7 +341,7 @@ long /*int*/ panel_shouldShowFilename (long /*int*/ id, long /*int*/ sel, long /
if (found) {
if (isDirectory[0] != 0) {
return 1;
- } else {
+ } else if (popup != null) {
String fileName = path.lastPathComponent().getString();
int filterIndex = (int)/*64*/popup.indexOfSelectedItem();
String extensions = filterExtensions [filterIndex];