Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2004-02-11 20:37:50 +0000
committerFelipe Heidrich2004-02-11 20:37:50 +0000
commitb50cc2afcc26fcae4fe9849e4cba03e1408eb9b7 (patch)
tree2d1c0ec3ec19a65fa894d172a1767a67f9ccdb48 /examples
parent97f19325383705b923833f15a7ce5415e22b5b2e (diff)
downloadeclipse.platform.swt-b50cc2afcc26fcae4fe9849e4cba03e1408eb9b7.tar.gz
eclipse.platform.swt-b50cc2afcc26fcae4fe9849e4cba03e1408eb9b7.tar.xz
eclipse.platform.swt-b50cc2afcc26fcae4fe9849e4cba03e1408eb9b7.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java
index 7a9180a19d..976ffdd8ed 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java
@@ -426,7 +426,7 @@ class CoolBarTab extends Tab {
menu.setLocation (pt.x, pt.y);
menu.setVisible (true);
Display display = coolBar.getDisplay ();
- while (menu != null && menu.isVisible ()) {
+ while (menu != null && !menu.isDisposed() && menu.isVisible ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
if (menu != null) {

Back to the top