mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 17:01:22 +00:00
Cleanup context menu a little: remove "find file"
svn path=/trunk/kdebase/libkonq/; revision=203458
This commit is contained in:
parent
6c52960b07
commit
0f212980f9
|
@ -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" );
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue