Browse Source

修改判断逻辑

master
juhaoyu 8 years ago
parent
commit
35782fcac1
  1. 4
      designer_chart/src/com/fr/design/extra/ChartTypeInterfaceCloseableHandler.java

4
designer_chart/src/com/fr/design/extra/ChartTypeInterfaceCloseableHandler.java

@ -20,10 +20,10 @@ public class ChartTypeInterfaceCloseableHandler extends CloseableInvocationHandl
@Override
protected boolean invokeIsClosed() {
return super.invokeIsClosed() && containsChart();
//UI对应的chart如果关闭或者不存在,则UI关闭
return super.invokeIsClosed() || !containsChart();
}
//UI对应的chart如果关闭或者不存在,则UI关闭
private boolean containsChart() {
return ChartTypeManager.getInstance().containsPlot(plotID);

Loading…
Cancel
Save