diff options
author | Bogdan Gheorghe <gheorghe> | 2009-03-26 20:30:48 +0000 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe> | 2009-03-26 20:30:48 +0000 |
commit | eb295d298f5a6bd34315c1f3f14f0f5c05d242c9 (patch) | |
tree | 5cb830948d5a18365d57f79b35798b278a9bcfe4 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java | |
parent | 1ac9c85d6e535dfc32a78b2660e06c39f712f281 (diff) | |
download | eclipse.platform.swt-eb295d298f5a6bd34315c1f3f14f0f5c05d242c9.tar.gz eclipse.platform.swt-eb295d298f5a6bd34315c1f3f14f0f5c05d242c9.tar.xz eclipse.platform.swt-eb295d298f5a6bd34315c1f3f14f0f5c05d242c9.zip |
270140 MessageDialog spews warning on gtk 2.4.13
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java index 5d6ff08203..fe8e790f4b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java @@ -523,8 +523,10 @@ void presetChooserDialog () { * The fix is to use the canonical path. */ int /*long*/ ptr = OS.realpath (buffer, null); - OS.gtk_file_chooser_set_filename (handle, ptr); - OS.g_free (ptr); + if (ptr != 0) { + OS.gtk_file_chooser_set_filename (handle, ptr); + OS.g_free (ptr); + } } } |