litesoft
Diff Revisions 488 vs 489 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/CloseableFloaterPanelTitleBar.java
@@ -27,7 +27,10 @@ | |||
27 | 27 | add( mTitle ); | |
28 | 28 | add( new Spacer().width( 5 ) ); | |
29 | 29 | add( new SizeableSpacer().stretchableHorizontally() ); | |
30 | - | add( new WindowCloseButton( pCloseCommand ) ); | |
30 | + | if ( pCloseCommand != null ) | |
31 | + | { | |
32 | + | add( new WindowCloseButton( pCloseCommand ) ); | |
33 | + | } | |
31 | 34 | } | |
32 | 35 | ||
33 | 36 | @Override |