Revision 237 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/gui/DefaultLayoutPanel.java
DefaultLayoutPanel.java | ||
---|---|---|
132 | 132 |
private int lastPanePos = 150; |
133 | 133 |
|
134 | 134 |
private Boolean b_isTocEnabled = null; |
135 |
private boolean b_firstTimeOpened = true; |
|
136 | 135 |
|
137 | 136 |
/** |
138 | 137 |
* Creates a new Layout object. |
... | ... | |
418 | 417 |
* @see com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated() |
419 | 418 |
*/ |
420 | 419 |
public void windowActivated() { |
421 |
if (b_firstTimeOpened) {
|
|
422 |
b_firstTimeOpened = false;
|
|
420 |
if (getLayoutContext()!=null && !getLayoutContext().hasDocBeenOpened()) {
|
|
421 |
getLayoutContext().setHasDocBeenOpened(true);
|
|
423 | 422 |
if (isInitConfigDialogEnabled()) { |
424 | 423 |
FConfigLayoutDialog configDialog = new FConfigLayoutDialog(this, true); |
425 | 424 |
ApplicationLocator.getManager().getUIManager().addCentredWindow(configDialog); |
Also available in: Unified diff