TouchKit's NavigationManager broken?

Hi,

I’m using the SNAPSHOT as of just now (21:30 on April 18th 2013) and am seeing a similar (if not the same) problem.

To be exact, what I’m doing is replacing the left component with a custom button which, when clicked, prompts the user to confirm. If they confirm, it then calls navigateBack(), but it doesn’t appear to work. Here’s the code:

In my constructor I simply call:


    setLeftComponent(createFinishButton());

And createFinishButton() looks like this:

	
private Component createFinishButton() {
		Button button = new Button("Finish");
		button.addClickListener(new ClickListener() {
			@Override
			public void buttonClick(ClickEvent event) {
				Button cancel = new Button("Finish");

				HorizontalLayout prompt = new HorizontalLayout(cancel);
				prompt.setMargin(true);

				final Popover popover = new Popover(prompt);
				popover.showRelativeTo(GameLobbyView.this);
				cancel.addClickListener(new ClickListener() {
					@Override
					public void buttonClick(ClickEvent event) {
						getNavigationManager().navigateBack();
						popover.close();
					}
				});
			}
		});

		return button;
	}

Is it broke or am I doing something wrong?

Thanks in advance.