Better way of dealing with adding title to history.

We only show that menu item to add the title to history if the
history is set to only collect the entries manually.
This commit is contained in:
Tvangeste 2013-01-17 19:46:33 +01:00
parent ea2f2e8854
commit 35dc7b0a8a

View file

@ -1113,7 +1113,7 @@ 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() ) if( menu.isEmpty() && !cfg.preferences.storeHistory)
{ {
addHeaderToHistoryAction = new QAction( tr( "&Add \"%1\" to history" ). addHeaderToHistoryAction = new QAction( tr( "&Add \"%1\" to history" ).
arg( ui.definition->title() ), arg( ui.definition->title() ),