-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Crash when a dialog in a form for newly created element is shown while uploading #5809
Comments
Hmm, the case of a dialog staying open when the fragment closes would be really a lot of work to solve. Basically, any quest form would need to keep track of its dialogs opened and then close them all on onDestroy. (In Compose, this is no problem) So, maybe something could be done here regarding why this form is closed in the first place. But eh... the open quest form has the element ID of the currently selected element. After upload, the ID changed (because it was a created element) and thus MainFragment::onReplacedForBbox detects this as "this element does not exist anymore, so close the form for it". One solution would be to (try to) update the element id in that form on an element id update... but IMO this sounds not really worth the effort in order to circumvent such a rare crash issue. |
Hmm, then compose looks like the "easiest" solution |
(Will be some time, though) |
How to Reproduce
stack trace
Expected Behavior
Dialog should close automatically, or at least there should be no crash on selecting something.
Versions affected
current master (a6c49bc)
The text was updated successfully, but these errors were encountered: