mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Save current article and window position before loading DSL picture
Without the added saveHistoryUserData() call, returning back from the enlarged picture page ("gdpicture") restores the current article and the window position that were last saved. At this commit the "gdpicture" behavior is consistent with regular links: returning back from the enlarged picture page sets the article with the picture as current and restores the window position at the time of the click on the picture.
This commit is contained in:
parent
10d0d8193b
commit
ca0209faff
|
@ -1197,7 +1197,10 @@ void ArticleView::openLink( QUrl const & url, QUrl const & ref,
|
|||
Contexts contexts( contexts_ );
|
||||
|
||||
if( url.scheme().compare( "gdpicture" ) == 0 )
|
||||
{
|
||||
saveHistoryUserData();
|
||||
ui.definition->load( url );
|
||||
}
|
||||
else
|
||||
if ( url.scheme().compare( "bword" ) == 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue