It is possible to remove passages which have links to them
Passages should not be deleted when there are links pointing to it in the story editor.
In the story editor, a passage is removed even if there are links pointing to it. It seems to ignore that links point to it.
Steps to Reproduce the Problem
- Run the application
- Go to the story editor
- Create two passages with a link between them
- Click on delete passage on the passage that has a link to it
Proposed Solution (Optional)
The reason why this is happening might be that the removePassage returns a boolean which is ignored in the file editor. At the moment it tries to catch an exception, but the method returns boolean instead.