Restored correct behavior in a non-fallthrough way.
(And personally, I think falling-through is fine if documented. Maybe we need a @FallThrough annotation so that the compiler can be our best friend.) git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@117 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -68,10 +68,10 @@ public class PortalTool extends MouseInputAdapter
|
|||||||
switch (event.getButton()) {
|
switch (event.getButton()) {
|
||||||
case MouseEvent.BUTTON1:
|
case MouseEvent.BUTTON1:
|
||||||
savePortal();
|
savePortal();
|
||||||
|
dispose();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MouseEvent.BUTTON3:
|
case MouseEvent.BUTTON3:
|
||||||
savePortal();
|
|
||||||
dispose();
|
dispose();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user