Revert "Remove rather useless context menu to add title to history."

This reverts commit c03b346114.

The menu item is not completely useless, it useful when the automatic history
gathering is disabled and this menu could be used to add items to the history
manually.
This commit is contained in:
Tvangeste 2013-01-17 19:38:49 +01:00
parent c03b346114
commit ea2f2e8854

View file

@ -1113,6 +1113,14 @@ void ArticleView::contextMenuRequested( QPoint const & pos )
if ( selectedText.size() )
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;
// Add table of contents