Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yehaojie
plugin-GUI
Commits
558fa784
Commit
558fa784
authored
11 years ago
by
jsiegle
Browse files
Options
Downloads
Patches
Plain Diff
Prevent orphaned processors when splitters are deleted
parent
3ea8b8dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/UI/SignalChainManager.cpp
+15
-1
15 additions, 1 deletion
Source/UI/SignalChainManager.cpp
with
15 additions
and
1 deletion
Source/UI/SignalChainManager.cpp
+
15
−
1
View file @
558fa784
...
...
@@ -188,7 +188,8 @@ void SignalChainManager::updateVisibleEditors(GenericEditor* activeEditor,
GenericProcessor
*
p
=
(
GenericProcessor
*
)
editorArray
[
index
]
->
getProcessor
();
// need to inform the other source that its merger has disappeared
// if the processor to be removed is a merger,
// we need to inform the other source that its merger has disappeared
if
(
p
->
isMerger
())
{
p
->
switchIO
();
...
...
@@ -196,6 +197,19 @@ void SignalChainManager::updateVisibleEditors(GenericEditor* activeEditor,
p
->
getSourceNode
()
->
setDestNode
(
0
);
}
// if the processor to be removed is a splitter, we need to make sure
// there aren't any orphaned processors
if
(
p
->
isSplitter
())
{
p
->
switchIO
();
if
(
p
->
getDestNode
()
!=
0
)
{
std
::
cout
<<
"Found an orphaned signal chain"
<<
std
::
endl
;
p
->
getDestNode
()
->
setSourceNode
(
0
);
createNewTab
(
p
->
getDestNode
()
->
getEditor
());
}
}
editorArray
.
remove
(
index
);
int
t
=
activeEditor
->
tabNumber
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment