• Alex Wilkinson's avatar
    Correctly set parent of QGCCorePlugin · 1893a920
    Alex Wilkinson authored
    QGCCorePlugin is currently constructed with a QGCToolbox* toolbx parameter of null. This is because at the time QGCCorePlugin (or an actual custom plugin) is constructed app->toolbox() is null.
    _scanAndLoadPlugins() is called as part of the QGCToolbox constructor where all toolbox classes use the same format:
    _class = new Class(app, this);
    
    The creation of QGCCorePlugin should follow the same pattern.
    
    The practical issue I had with this is that because the parent is not set correctly, QGCCorePlugin is not destructed when the app is closed. This means any code in the destructor is not run. (QGCCorePlugin itself has as a destructor which is currently not being called).
    1893a920
Name
Last commit
Last update
..
ADSB Loading commit data...
Airmap Loading commit data...
AirspaceManagement Loading commit data...
AnalyzeView Loading commit data...
Audio Loading commit data...
AutoPilotPlugins Loading commit data...
Camera Loading commit data...
FactSystem Loading commit data...
FirmwarePlugin Loading commit data...
FlightDisplay Loading commit data...
FlightMap Loading commit data...
FollowMe Loading commit data...
GPS Loading commit data...
Geo Loading commit data...
Joystick Loading commit data...
Microhard Loading commit data...
MissionManager Loading commit data...
PairingManager Loading commit data...
PlanView Loading commit data...
PositionManager Loading commit data...
QmlControls Loading commit data...
QtLocationPlugin Loading commit data...
Settings Loading commit data...
Taisync Loading commit data...
Terrain Loading commit data...
Vehicle Loading commit data...
VehicleSetup Loading commit data...
VideoManager Loading commit data...
VideoReceiver Loading commit data...
ViewWidgets Loading commit data...
api Loading commit data...
comm Loading commit data...
qgcunittest Loading commit data...
uas Loading commit data...
ui Loading commit data...
CMakeLists.txt Loading commit data...
CmdLineOptParser.cc Loading commit data...
CmdLineOptParser.h Loading commit data...
JsonHelper.cc Loading commit data...
JsonHelper.h Loading commit data...
KMLDomDocument.cc Loading commit data...
KMLDomDocument.h Loading commit data...
KMLHelper.cc Loading commit data...
KMLHelper.h Loading commit data...
LogCompressor.cc Loading commit data...
LogCompressor.h Loading commit data...
MobileScreenMgr.cc Loading commit data...
MobileScreenMgr.h Loading commit data...
MobileScreenMgr.mm Loading commit data...
QGC.cc Loading commit data...
QGC.h Loading commit data...
QGCApplication.cc Loading commit data...
QGCApplication.h Loading commit data...
QGCComboBox.cc Loading commit data...
QGCComboBox.h Loading commit data...
QGCConfig.h Loading commit data...
QGCDockWidget.cc Loading commit data...
QGCDockWidget.h Loading commit data...
QGCFileDownload.cc Loading commit data...
QGCFileDownload.h Loading commit data...
QGCLoggingCategory.cc Loading commit data...
QGCLoggingCategory.h Loading commit data...
QGCMapPalette.cc Loading commit data...
QGCMapPalette.h Loading commit data...
QGCPalette.cc Loading commit data...
QGCPalette.h Loading commit data...
QGCQGeoCoordinate.cc Loading commit data...
QGCQGeoCoordinate.h Loading commit data...
QGCTemporaryFile.cc Loading commit data...
QGCTemporaryFile.h Loading commit data...
QGCToolbox.cc Loading commit data...
QGCToolbox.h Loading commit data...
RunGuard.cc Loading commit data...
RunGuard.h Loading commit data...
SHPFileHelper.cc Loading commit data...
SHPFileHelper.h Loading commit data...
ShapeFileHelper.cc Loading commit data...
ShapeFileHelper.h Loading commit data...
TerrainTile.cc Loading commit data...
TerrainTile.h Loading commit data...
documentation.dox Loading commit data...
main.cc Loading commit data...
stable_headers.h Loading commit data...
test.qml Loading commit data...