Cleanup context menu a little: remove "find file"

svn path=/trunk/kdebase/libkonq/; revision=203458
This commit is contained in:
Waldo Bastian 2003-01-28 23:24:18 +00:00
parent 6c52960b07
commit 0f212980f9
2 changed files with 1 additions and 17 deletions

View file

@ -28,7 +28,7 @@
PopupMenuGUIClient::PopupMenuGUIClient( KonqMainWindow *mainWindow,
const KTrader::OfferList &embeddingServices,
bool dirsSelected )
bool /* dirsSelected */ )
{
m_mainWindow = mainWindow;
@ -101,18 +101,6 @@ PopupMenuGUIClient::PopupMenuGUIClient( KonqMainWindow *mainWindow,
menu.removeChild( menu.namedItem( "menu" ) );
}
KonqView *v = mainWindow->currentView();
if ( v && v->part() && v->part()->inherits( "KonqDirPart" ) && dirsSelected )
{
QDomElement separator = m_doc.createElement( "separator" );
separator.setAttribute( "group", "find" );
menu.appendChild( separator );
QDomElement findAction = m_doc.createElement( "action" );
findAction.setAttribute( "name", "findfile" );
findAction.setAttribute( "group", "find" );
menu.appendChild( findAction );
}
QDomElement openInTabElement = m_doc.createElement( "action" );
openInTabElement.setAttribute( "name", "openintab" );
openInTabElement.setAttribute( "group", "tabhandling" );

View file

@ -325,10 +325,6 @@ void KonqPopupMenu::setup(bool showPropertiesAndFileType)
addAction( "pasteto" );
}
// The actions in this group are defined in PopupMenuGUIClient
// When defined, it includes a separator before the 'find' action
addGroup( "find" );
if (!currentDir)
{
if ( sReading || sWriting ) // only if we added an action above