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
4c965cf5
Commit
4c965cf5
authored
11 years ago
by
jsiegle
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash when deleting complex signal chains
parent
063c3932
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/UI/EditorViewport.cpp
+10
-7
10 additions, 7 deletions
Source/UI/EditorViewport.cpp
Source/UI/UIComponent.cpp
+2
-0
2 additions, 0 deletions
Source/UI/UIComponent.cpp
with
12 additions
and
7 deletions
Source/UI/EditorViewport.cpp
+
10
−
7
View file @
4c965cf5
...
...
@@ -139,13 +139,13 @@ void EditorViewport::paint(Graphics& g)
//int w = 30;
//int h = getHeight() - 2*(borderSize+2);
if
(
editorArray
.
size
()
>
0
)
{
if
(
!
editorArray
[
0
]
->
getProcessor
()
->
isSource
())
g
.
drawImageAt
(
sourceDropImage
,
x
,
y
);
}
else
{
//
if (editorArray.size() > 0)
//
{
//
if (!editorArray[0]->getProcessor()->isSource())
//
g.drawImageAt(sourceDropImage, x, y);
//
} else {
g
.
drawImageAt
(
sourceDropImage
,
x
,
y
);
}
//
}
}
bool
EditorViewport
::
isInterestedInDragSource
(
const
SourceDetails
&
dragSourceDetails
)
...
...
@@ -279,8 +279,11 @@ void EditorViewport::itemDropped(const SourceDetails& dragSourceDetails)
void
EditorViewport
::
clearSignalChain
()
{
if
(
canEdit
)
{
editorArray
.
clear
();
//const MessageManagerLock mmLock; // prevent redraw while deleting
std
::
cout
<<
"Clearing signal chain."
<<
std
::
endl
;
signalChainManager
->
clearSignalChain
();
getProcessorGraph
()
->
clearSignalChain
();
...
...
@@ -294,7 +297,7 @@ void EditorViewport::clearSignalChain()
}
//
repaint();
repaint
();
}
void
EditorViewport
::
makeEditorVisible
(
GenericEditor
*
editor
,
bool
highlight
,
bool
updateSettings
)
...
...
This diff is collapsed.
Click to expand it.
Source/UI/UIComponent.cpp
+
2
−
0
View file @
4c965cf5
...
...
@@ -439,8 +439,10 @@ bool UIComponent::perform(const InvocationInfo& info)
break
;
}
case
clearSignalChain
:
{
getEditorViewport
()
->
clearSignalChain
();
break
;
}
case
showHelp
:
std
::
cout
<<
"SHOW ME SOME HELP!"
<<
std
::
endl
;
...
...
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