SVN commit 792384 by dhaumann: register the KateExternalToolsCommand again in the CommandInterface. M +7 -17 kateexternaltoolsplugin.cpp --- trunk/KDE/kdesdk/kate/plugins/externaltools/kateexternaltoolsplugin.cpp #792383:792384 @@ -25,6 +25,8 @@ #include #include #include +#include +#include #include #include @@ -57,6 +59,11 @@ if (KAuthorized::authorizeKAction("shell_access")) { + KTextEditor::CommandInterface* cmdIface = + qobject_cast( Kate::application()->editor() ); + if( cmdIface ) + cmdIface->registerCommand( KateExternalToolsCommand::self() ); + externalTools = new KateExternalToolsMenuAction( i18n("External Tools"), actionCollection(), mainWindow, mainWindow ); actionCollection()->addAction("tools_external", externalTools); externalTools->setWhatsThis( i18n("Launch external helper applications") ); @@ -71,21 +78,4 @@ KateExternalToolsPluginView::~KateExternalToolsPluginView () {} -/* - if ( KAuthorized::authorize("shell_access") ) - { - KTextEditor::CommandInterface* cmdIface = - qobject_cast( KateDocManager::self()->editor() ); - if( cmdIface ) - cmdIface->registerCommand( KateExternalToolsCommand::self() ); - } - - if ( KAuthorized::authorize("shell_access") ) - { - externalTools = new KateExternalToolsMenuAction( i18n("External Tools"), this, this ); - actionCollection()->addAction( "tools_external", externalTools ); - externalTools->setWhatsThis( i18n("Launch external helper applications") ); - } - */ // kate: space-indent on; indent-width 2; replace-tabs on; -