mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
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:
parent
ea2f2e8854
commit
35dc7b0a8a
|
@ -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() ),
|
||||||
|
|
Loading…
Reference in a new issue