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