diff options
author | Scott Kovatch <skovatch> | 2011-01-31 20:29:47 +0000 |
---|---|---|
committer | Scott Kovatch <skovatch> | 2011-01-31 20:29:47 +0000 |
commit | 5de89d7d33aa4b5d6c13fd694b216b1cf2cb4f87 (patch) | |
tree | 6b6ed383b000b38c68b199b15f634bc07fb083f2 | |
parent | c59b97dacab2962be63d87127b336c1a2c6077f0 (diff) | |
download | eclipse.platform.swt-5de89d7d33aa4b5d6c13fd694b216b1cf2cb4f87.tar.gz eclipse.platform.swt-5de89d7d33aa4b5d6c13fd694b216b1cf2cb4f87.tar.xz eclipse.platform.swt-5de89d7d33aa4b5d6c13fd694b216b1cf2cb4f87.zip |
335304 - click in the control shouldn't automatically hide the calendar.
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java index 4c3d356c43..6569fdeb8f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java @@ -218,7 +218,7 @@ void createPopupShell(int year, int month, int day) { if (clickListener == null) { clickListener = new Listener() { public void handleEvent(Event event) { - if (event.widget instanceof Control) { + if (event.widget instanceof Control && event.widget != DateTime.this) { Control c = (Control)event.widget; if (c.getShell() != popupShell) { hideCalendar(); |