Revision 1827 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/FPopupMenu.java

View differences:

FPopupMenu.java
388 388
    	for (int i = 0; i < actives.length; i++){
389 389
        	try {
390 390
            	getMapContext().getLayers().removeLayer(actives[i]);
391
            	if (getMapContext().getLayers().getLayersCount()==0)PluginServices.getMainFrame().enableControls();
391
            	if (getMapContext().getLayers().getLayersCount()==0)
392
            	    PluginServices.getMainFrame().enableControls();
392 393
    		} catch (CancelationException e1) {
393 394
    			e1.printStackTrace();
394 395
    		}

Also available in: Unified diff