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:
|
||||
TerminalPlugin() = default;
|
||||
|
||||
~TerminalPlugin() final
|
||||
{
|
||||
ExtensionSystem::PluginManager::removeObject(m_terminalPane);
|
||||
delete m_terminalPane;
|
||||
m_terminalPane = nullptr;
|
||||
}
|
||||
|
||||
void extensionsInitialized() final
|
||||
{
|
||||
m_terminalPane = new TerminalPane;
|
||||
ExtensionSystem::PluginManager::addObject(m_terminalPane);
|
||||
m_terminalPane = new TerminalPane(this);
|
||||
|
||||
TerminalWidget::initActions(this);
|
||||
|
||||
|
Reference in New Issue
Block a user