forked from qt-creator/qt-creator
Python: remove settings object from objects pool
Change-Id: I4f21688f887c1ad99facb3ffe3a85b5918dd7daf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Eike Ziller
parent
0939b44d16
commit
c7d3f48508
@@ -708,6 +708,12 @@ PythonSettings::PythonSettings()
|
|||||||
pylspOptionsPage();
|
pylspOptionsPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PythonSettings::~PythonSettings()
|
||||||
|
{
|
||||||
|
ExtensionSystem::PluginManager::removeObject(this);
|
||||||
|
settingsInstance = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void PythonSettings::init()
|
void PythonSettings::init()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(!settingsInstance, return );
|
QTC_ASSERT(!settingsInstance, return );
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ class PythonSettings : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
~PythonSettings();
|
||||||
|
|
||||||
static void init();
|
static void init();
|
||||||
|
|
||||||
using Interpreter = ProjectExplorer::Interpreter;
|
using Interpreter = ProjectExplorer::Interpreter;
|
||||||
|
|||||||
Reference in New Issue
Block a user