Browse Source

Merge pull request #8629 from AWilco/patch-1

Correctly set parent of QGCCorePlugin
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
8287b37f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/QGCToolbox.cc

4
src/QGCToolbox.cc

@ -134,13 +134,13 @@ void QGCToolbox::_scanAndLoadPlugins(QGCApplication* app) @@ -134,13 +134,13 @@ void QGCToolbox::_scanAndLoadPlugins(QGCApplication* app)
{
#if defined (QGC_CUSTOM_BUILD)
//-- Create custom plugin (Static)
_corePlugin = (QGCCorePlugin*) new CUSTOMCLASS(app, app->toolbox());
_corePlugin = (QGCCorePlugin*) new CUSTOMCLASS(app, this);
if(_corePlugin) {
return;
}
#endif
//-- No plugins found, use default instance
_corePlugin = new QGCCorePlugin(app, app->toolbox());
_corePlugin = new QGCCorePlugin(app, this);
}
QGCTool::QGCTool(QGCApplication* app, QGCToolbox* toolbox)

Loading…
Cancel
Save