Skip to content

Commit 9fe0bc1

Browse files
author
zhourenjian
committed
Fixed bug that Shell with style SWT.TOOL change document.title to null.
1 parent b86642c commit 9fe0bc1

File tree

1 file changed

+3
-0
lines changed
  • sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets

1 file changed

+3
-0
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Decorations.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ void bringToTop () {
232232
setSize(this.width, this.height);
233233
}
234234
setLocation(this.left, this.top);
235+
236+
if ((this.style & SWT.TOOL) == 0)
235237
/**
236238
* @j2sNative
237239
* var title = this.getText();
@@ -761,6 +763,7 @@ public void dispose () {
761763
shell.setFocus ();
762764
}
763765
}
766+
if ((this.style & SWT.TOOL) == 0)
764767
/**
765768
* @j2sNative
766769
* if (window["document.title"] != null) {

0 commit comments

Comments
 (0)