From ad611952fa2e93e9da8637fe871c869256d7f443 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 21 Mar 2002 00:55:10 +0000 Subject: [PATCH] Wasn't keeping reference to PlaceObject even though we had a member for it; modified handleAction() to call super if we or our delegates didn't handle the action (which invokes the reflecty business). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1143 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/crowd/client/PlaceController.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/crowd/client/PlaceController.java b/src/java/com/threerings/crowd/client/PlaceController.java index 1c1911eb6..2014ef351 100644 --- a/src/java/com/threerings/crowd/client/PlaceController.java +++ b/src/java/com/threerings/crowd/client/PlaceController.java @@ -1,5 +1,5 @@ // -// $Id: PlaceController.java,v 1.7 2002/02/14 00:00:45 mdb Exp $ +// $Id: PlaceController.java,v 1.8 2002/03/21 00:55:10 mdb Exp $ package com.threerings.crowd.client; @@ -17,8 +17,7 @@ import com.threerings.crowd.util.CrowdContext; * constructed and requested to create and display the appopriate user * interface for that place. */ -public abstract class PlaceController - extends Controller +public abstract class PlaceController extends Controller { /** * Initializes this place controller with a reference to the context @@ -88,6 +87,9 @@ public abstract class PlaceController */ public void willEnterPlace (final PlaceObject plobj) { + // keep a handle on our place object + _plobj = plobj; + if (_view != null ) { // let the UI hierarchy know that we've got our place PlaceViewUtil.dispatchWillEnterPlace(_view, plobj); @@ -142,7 +144,8 @@ public abstract class PlaceController } }); - return handled[0]; + // if they didn't handly it, pass it off to the super class + return handled[0] ? true : super.handleAction(action); } /**