Page MenuHomePhabricator

Welcome Screen: Icons from the welcome screen only work once.
Closed, ResolvedPublic

Description

When starting the program and clicking an icon from the welcome screen (e.g. "Quantification"), the progam switches to the display tab, loading appropriate bundles. When switching back to the welcome screen and clicking it again, it does not siwtch back to the display again, it only opens the bundles. You can repeat this once for each icon on the welcome screen.

Event Timeline

I thought thas was due to it switching to the status you left the perspective in (welcome screen being selected) but I just tested the following workflow:

Open MITK Diffusion
Select random perspective from welcome screen
Select a different random perspective using window->open perspective
Switch to the welcome screen
Select the first perspective again
-> Focus will be on the welcome screen

Reassigning to Jan as he did some work on this previously.

After opening a perspective by clicking the icon in the welcomescreen, the welcome screen "owns" the opened perspective. Therefore on the second and each other attempt, the function

berry::Workbench::ShowPerspective( id, window )

returns the welcome screen on line 1142: return page;

On first attempt, the method part after line 1151 gets executed.

[25c079]: Merge branch 'bug-11722-FocusSwitchWorksOnlyOnce'

Merged commits:

2012-04-27 16:56:46 Jan Hering [3ffafc]
Fixing focus behaviour of the mitkDiffusion application

  • when the introPart is opening a perspective, it searches in addition
  • for active stdMultiWidgets and gives a focus to one if found