Remove rather useless context menu to add title to history.

In most cases, since we are on this page, we have already
just added its title to the history.
This commit is contained in:
Tvangeste 2013-01-17 19:06:46 +01:00
parent 05546a5d53
commit c03b346114

View file

@ -1113,14 +1113,6 @@ void ArticleView::contextMenuRequested( QPoint const & pos )
if ( selectedText.size() ) if ( selectedText.size() )
menu.addAction( ui.definition->pageAction( QWebPage::Copy ) ); menu.addAction( ui.definition->pageAction( QWebPage::Copy ) );
if( menu.isEmpty() )
{
addHeaderToHistoryAction = new QAction( tr( "&Add \"%1\" to history" ).
arg( ui.definition->title() ),
&menu );
menu.addAction( addHeaderToHistoryAction );
}
map< QAction *, QString > tableOfContents; map< QAction *, QString > tableOfContents;
// Add table of contents // Add table of contents