diff options
Diffstat (limited to 'src/plugins/helloworld/helloworldplugin.cpp')
-rw-r--r-- | src/plugins/helloworld/helloworldplugin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/helloworld/helloworldplugin.cpp b/src/plugins/helloworld/helloworldplugin.cpp index 9136ad04a7..e0f14ce548 100644 --- a/src/plugins/helloworld/helloworldplugin.cpp +++ b/src/plugins/helloworld/helloworldplugin.cpp @@ -96,9 +96,6 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe Q_UNUSED(arguments) Q_UNUSED(errorMessage) - // Get the primary access point to the workbench. - Core::ICore *core = Core::ICore::instance(); - // Create a unique context for our own view, that will be used for the // menu entry later. Core::Context context("HelloWorld.MainView"); @@ -108,7 +105,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe connect(helloWorldAction, SIGNAL(triggered()), SLOT(sayHelloWorld())); // Register the action with the action manager - Core::ActionManager *actionManager = core->actionManager(); + Core::ActionManager *actionManager = Core::ICore::actionManager(); Core::Command *command = actionManager->registerAction( helloWorldAction, "HelloWorld.HelloWorldAction", context); |