Skip to content
Snippets Groups Projects
Commit fd22901f authored by srosse's avatar srosse
Browse files

OO-1335: rewrite the test in the case of dtabs null

parent 6afaef40
No related branches found
No related tags found
No related merge requests found
......@@ -1214,10 +1214,13 @@ public class BaseFullWebappController extends BasicController implements ChiefCo
* @return
*/
public boolean isCanCloseDTab() {
//can close
synchronized (dtabs) {
return (sites != null && !sites.isEmpty()) || (dtabs != null && dtabs.size() > 1);
boolean canClose = (sites != null && sites.size() > 0);
if(!canClose && dtabs != null) {
synchronized (dtabs) {
canClose = (dtabs != null && dtabs.size() > 1);
}
}
return canClose;
}
private void setCurrent(SiteInstance site, DTab tab) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment