forked from qt-creator/qt-creator
Terminal: Remove object registration
Its unnecessary to register the object in the plugin system. Change-Id: I0a356b9a040879503e38090939008277e4eea4f0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -32,17 +32,9 @@ class TerminalPlugin final : public ExtensionSystem::IPlugin
|
|||||||
public:
|
public:
|
||||||
TerminalPlugin() = default;
|
TerminalPlugin() = default;
|
||||||
|
|
||||||
~TerminalPlugin() final
|
|
||||||
{
|
|
||||||
ExtensionSystem::PluginManager::removeObject(m_terminalPane);
|
|
||||||
delete m_terminalPane;
|
|
||||||
m_terminalPane = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
void extensionsInitialized() final
|
void extensionsInitialized() final
|
||||||
{
|
{
|
||||||
m_terminalPane = new TerminalPane;
|
m_terminalPane = new TerminalPane(this);
|
||||||
ExtensionSystem::PluginManager::addObject(m_terminalPane);
|
|
||||||
|
|
||||||
TerminalWidget::initActions(this);
|
TerminalWidget::initActions(this);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user