Commit 8f3a8d47 authored by Tobias Nätterlund's avatar Tobias Nätterlund Committed by Tobias Nätterlund

BlackBerry: Only add the Bar Descriptor category once to the taskhub

Change-Id: Iaaa565559a38753bb08ef986557d2ca489e5e190
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 9763e9e3
......@@ -49,7 +49,6 @@ using namespace Qnx::Internal;
BarDescriptorEditor::BarDescriptorEditor(BarDescriptorEditorWidget *editorWidget)
: Core::IEditor()
, m_taskHub(0)
{
setWidget(editorWidget);
......@@ -166,12 +165,7 @@ void BarDescriptorEditor::changeEditorPage(QAction *action)
ProjectExplorer::TaskHub *BarDescriptorEditor::taskHub()
{
if (m_taskHub == 0) {
m_taskHub = ProjectExplorer::ProjectExplorerPlugin::instance()->taskHub();
m_taskHub->addCategory(Constants::QNX_TASK_CATEGORY_BARDESCRIPTOR, tr("Bar Descriptor"));
}
return m_taskHub;
return ProjectExplorer::ProjectExplorerPlugin::instance()->taskHub();
}
void BarDescriptorEditor::setActivePage(BarDescriptorEditor::EditorPage page)
......
......@@ -96,8 +96,6 @@ private:
QToolBar *m_toolBar;
QActionGroup *m_actionGroup;
ProjectExplorer::TaskHub *m_taskHub;
};
} // namespace Internal
......
......@@ -54,6 +54,8 @@
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/taskhub.h>
#include <QtPlugin>
......@@ -114,6 +116,8 @@ bool QNXPlugin::initialize(const QStringList &arguments, QString *errorString)
void QNXPlugin::extensionsInitialized()
{
ProjectExplorer::ProjectExplorerPlugin::instance()->taskHub()->addCategory(Constants::QNX_TASK_CATEGORY_BARDESCRIPTOR,
tr("Bar Descriptor"));
}
ExtensionSystem::IPlugin::ShutdownFlag QNXPlugin::aboutToShutdown()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment