mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
Merge pull request #955 from vedgy/fix-mediawiki-tooltips
Show #link as a tooltip instead of empty "Definition: "
This commit is contained in:
commit
76127eb04f
|
@ -1082,7 +1082,12 @@ void ArticleView::linkHovered ( const QString & link, const QString & , const QS
|
|||
}
|
||||
|
||||
if( msg.isEmpty() )
|
||||
msg = tr( "Definition: %1").arg( def );
|
||||
{
|
||||
if( def.isEmpty() && url.hasFragment() )
|
||||
msg = '#' + url.fragment(); // this must be a citation, footnote or backlink
|
||||
else
|
||||
msg = tr( "Definition: %1").arg( def );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue