mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +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,8 +1082,13 @@ void ArticleView::linkHovered ( const QString & link, const QString & , const QS
|
||||||
}
|
}
|
||||||
|
|
||||||
if( msg.isEmpty() )
|
if( msg.isEmpty() )
|
||||||
|
{
|
||||||
|
if( def.isEmpty() && url.hasFragment() )
|
||||||
|
msg = '#' + url.fragment(); // this must be a citation, footnote or backlink
|
||||||
|
else
|
||||||
msg = tr( "Definition: %1").arg( def );
|
msg = tr( "Definition: %1").arg( def );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg = link;
|
msg = link;
|
||||||
|
|
Loading…
Reference in a new issue