Revert previous change

This commit is contained in:
drdev
2014-01-08 03:11:47 +00:00
parent 80308ab621
commit 02a49149fa
5 changed files with 8 additions and 23 deletions

View File

@@ -196,11 +196,8 @@ public final class CEditorCommander extends ACEditorBase<PaperCard, Deck> {
*/ */
@Override @Override
public boolean canSwitchAway(boolean isClosing) { public boolean canSwitchAway(boolean isClosing) {
if (isClosing) {
return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_COMMANDER); return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_COMMANDER);
} }
return true;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges() * @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges()

View File

@@ -365,11 +365,8 @@ public final class CEditorConstructed extends ACEditorBase<PaperCard, Deck> {
*/ */
@Override @Override
public boolean canSwitchAway(boolean isClosing) { public boolean canSwitchAway(boolean isClosing) {
if (isClosing) {
return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_CONSTRUCTED); return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_CONSTRUCTED);
} }
return true;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges() * @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges()

View File

@@ -180,11 +180,8 @@ public final class CEditorLimited extends ACEditorBase<PaperCard, DeckGroup> {
*/ */
@Override @Override
public boolean canSwitchAway(boolean isClosing) { public boolean canSwitchAway(boolean isClosing) {
if (isClosing) {
return SEditorIO.confirmSaveChanges(getScreen()); return SEditorIO.confirmSaveChanges(getScreen());
} }
return true;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges() * @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges()

View File

@@ -296,15 +296,12 @@ public final class CEditorQuest extends ACEditorBase<PaperCard, Deck> {
*/ */
@Override @Override
public boolean canSwitchAway(boolean isClosing) { public boolean canSwitchAway(boolean isClosing) {
if (isClosing) {
if (SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_QUEST)) { if (SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_QUEST)) {
Singletons.getModel().getQuest().save(); Singletons.getModel().getQuest().save();
return true; return true;
} }
return false; return false;
} }
return true;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges() * @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges()

View File

@@ -178,11 +178,8 @@ public final class CEditorVariant extends ACEditorBase<PaperCard, Deck> {
*/ */
@Override @Override
public boolean canSwitchAway(boolean isClosing) { public boolean canSwitchAway(boolean isClosing) {
if (isClosing) {
return SEditorIO.confirmSaveChanges(getScreen()); return SEditorIO.confirmSaveChanges(getScreen());
} }
return true;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges() * @see forge.gui.deckeditor.controllers.ACEditorBase#resetUIChanges()