mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
GCS/core: Turn off logger before exiting.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@698 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
147996935d
commit
754544f82b
@ -198,6 +198,9 @@ MainWindow::MainWindow() :
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
hide();
|
||||
qxtLog->removeAsMessageHandler();
|
||||
foreach (QString engine, qxtLog->allLoggerEngines())
|
||||
qxtLog->removeLoggerEngine(engine);
|
||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
||||
if (m_uavGadgetModes.count() > 0) {
|
||||
foreach (UAVGadgetMode *mode, m_uavGadgetModes)
|
||||
@ -206,6 +209,7 @@ MainWindow::~MainWindow()
|
||||
delete mode;
|
||||
}
|
||||
}
|
||||
|
||||
pm->removeObject(m_shortcutSettings);
|
||||
pm->removeObject(m_generalSettings);
|
||||
pm->removeObject(m_workspaceSettings);
|
||||
|
Loading…
x
Reference in New Issue
Block a user