Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editAppointment popup hiding or closing - ICalendarAgenda #97

Open
ConorMurphy21 opened this issue Apr 7, 2018 · 0 comments
Open

editAppointment popup hiding or closing - ICalendarAgenda #97

ConorMurphy21 opened this issue Apr 7, 2018 · 0 comments

Comments

@ConorMurphy21
Copy link

I have made a few alterations to ICalendarAgenda and effects to more properly suit my needs so I may have caused this on my own. But It's small enough and easy enough to look into thought I would mention it. I find when a user closes the editAppointment popup on a newly created appointment, and then exit the popup using the x instead of cancel, the vcomponent will be deleted (or not created) but the appointment will remain. Leading to a nullPointerException if you then click on the appointment and press delete or edit. This also happens if you hide the popup and try to delete the newly drawn appointment that hasn't been saved or canceled yet. The way I have avoided these issues is like so:

popupStage.initModality(Modality.APPLICATION_MODAL);
popupStage.setOnCloseRequest(e -> popupScene.getEditDisplayableTabPane().handleCancel());

by not allowing hiding and by setting the close request to your cancel button.

Sorry if this is the wrong place for this I don't use github very much and you may have already solved this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant