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

Fix editor crashes #109

Merged
merged 7 commits into from
Mar 28, 2019
Merged

Fix editor crashes #109

merged 7 commits into from
Mar 28, 2019

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Mar 25, 2019

We're not there yet, as there are entries registered that are not deregistered
properly.

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes

What is the current behavior?

Open, close and open Editor (in Edit menu). Gaphor crashes.

Issue Number: #96

What is the new behavior?

Opening and closing works as expected.

Tasks

  • Merge ElementEditor and PropertyEditor classes
  • Make sure handlers are unregistered when window is destroyed

We're not there yet, as there are entries registered that are not deregistered
properly.
@danyeaw
Copy link
Member

danyeaw commented Mar 26, 2019

@amolenaar In Linux, I can open the editor now, but it is blank:

Screenshot from 2019-03-25 21-05-24

Then if I close the editor, I can't reopen it.

@amolenaar
Copy link
Member Author

Yes, I ran into that. It's fixed now, also for the console.

This way I can at least control how it's created and terminated in a way that
does not crash or hangs the window. Also the PropertyEditor has been merged
with ElementEditor, since the state of both classes is closely aligned.
Signed-off-by: Dan Yeaw <dan@yeaw.me>
Signed-off-by: Dan Yeaw <dan@yeaw.me>
Signed-off-by: Dan Yeaw <dan@yeaw.me>
@danyeaw
Copy link
Member

danyeaw commented Mar 28, 2019

@amolenaar Sorry, I didn't need to prematurely review this if you were still working on it. These changes look awesome, really nice job fixing all of the editor issues 👍

@danyeaw danyeaw merged commit aa465ea into master Mar 28, 2019
@danyeaw danyeaw deleted the fix-editor-crashes branch March 28, 2019 02:11
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

Successfully merging this pull request may close these issues.

2 participants