mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 22:29:13 +08:00
Ref T270, use QPointer with simulator map in context. The advantage is, that we can also detect if the simulator is deleted elsewhere.
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QPointer>
|
||||||
|
|
||||||
namespace BlackMisc
|
namespace BlackMisc
|
||||||
{
|
{
|
||||||
@@ -233,7 +234,7 @@ namespace BlackCore
|
|||||||
//! Load the last know model set
|
//! Load the last know model set
|
||||||
void initByLastUsedModelSet();
|
void initByLastUsedModelSet();
|
||||||
|
|
||||||
QPair<BlackMisc::Simulation::CSimulatorPluginInfo, ISimulator *> m_simulatorPlugin; //!< Currently loaded simulator plugin
|
QPair<BlackMisc::Simulation::CSimulatorPluginInfo, QPointer<ISimulator>> m_simulatorPlugin; //!< Currently loaded simulator plugin
|
||||||
CPluginManagerSimulator *m_plugins = nullptr;
|
CPluginManagerSimulator *m_plugins = nullptr;
|
||||||
BlackMisc::CRegularThread m_listenersThread; //!< waiting for plugin
|
BlackMisc::CRegularThread m_listenersThread; //!< waiting for plugin
|
||||||
CWeatherManager m_weatherManager { this };
|
CWeatherManager m_weatherManager { this };
|
||||||
|
|||||||
Reference in New Issue
Block a user