Fix orphaned loop detection progress dialog - #1755
Merged
matlabbe merged 2 commits intoAug 27, 2026
Merged
Conversation
Member
|
Looks good to me! will merge after CI run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1462.
DatabaseViewer::detectMoreLoopClosures()currently constructs and shows its progress dialog before validating the session-selection options. When both intra-session and inter-session detection are disabled and no graph nodes are selected, the function displays the validation warning and returns, leaving the already-visible progress dialog behind.Implementation
Move the existing progress-dialog construction block below that validation guard. No dialog settings or loop-closure behavior are changed:
I kept this as a pure control-flow fix rather than adding cleanup to the error branch, so the resource is never created when no work can start.
Validation
master: progress-dialog construction preceded the invalid-option guard;git diff --checkpasses;guilib/src/DatabaseViewer.cpp(+7/-7).The repository does not currently provide a GUI test target for
DatabaseViewer; the existing cross-platform CI builds will cover compilation of the relocated code.