Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plugin-Datacontrol
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
Plugin-Datacontrol
Commits
38a6ad64
Commit
38a6ad64
authored
Dec 09, 2015
by
Isaak Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
null pointer check for getObject in datacontrol and selection plugin
parent
f88037b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
DataControlPlugin.cc
DataControlPlugin.cc
+6
-5
No files found.
DataControlPlugin.cc
View file @
38a6ad64
...
...
@@ -390,14 +390,15 @@ void DataControlPlugin::fileOpened(int _id){
BaseObject
*
obj
=
0
;
if
(
PluginFunctions
::
getObject
(
_id
,
obj
)
)
if
(
PluginFunctions
::
getObject
(
_id
,
obj
)
)
{
model_
->
objectAdded
(
obj
);
// Only if the added object was a light source, we will traverse the objects!
if
(
obj
->
dataType
()
==
DATA_LIGHT
)
slotShowLightSources
(
tool_
->
lightSources
->
checkState
());
// Only if the added object was a light source, we will traverse the objects!
if
(
obj
->
dataType
()
==
DATA_LIGHT
)
slotShowLightSources
(
tool_
->
lightSources
->
checkState
());
view_
->
resizeColumnToContents
(
0
);
view_
->
resizeColumnToContents
(
0
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment