Page MenuHomePhabricator

Crash after closing new window
Closed, ResolvedPublic

Description

To reproduce:

1 Open MITK Ext App
2 Load any image
3 Select Window->New Window
4 Close said window again using the (x) in the corner
5 Right click on the image in the datamanager

> Crash

Event Timeline

This crash also occurs if you click in a render window after closing the second window.

It should be discussed whether the "New Window" feature should be removed completly.

After small discussion with Marco:
It is NOT clearly defined what "new Window" should do. So far it opens another MainWindow which is synchronized with the existing one. This causes a lot of problems, especially in the Datamanger. Its context menu entries are empty or existing twice and/or do not work. Also the Datamanager will cause the application to crash, when one of the MainWindows is closed.

Some discussion has been made already, which should be documented here by the regarding people. And more discussion is needed to find a good solution to this.

Since "New Window" did not work properly in its current state, it should be disabled for the normal MITK user. However, a propoerty should be implemented to enable this feature if somebody like to use it.

This solution was discussed with Sascha.

[d1eeb8]: Merge branch 'bug-9218-DisableNewWindowMenuEntry'

Merged commits:

2012-05-02 17:21:19 Diana Wald [58e99d]
Disable New Window menu entry

From now on, the menu item "New Window" is disabled or rather it is no longer displayed. If someone want to use the "New Window" feature, he/she have to set showNewWindowMenuItem in QmitkExtWorkbenchWindowAdvisor to true.

For the moment no preference page is desired.