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:
Igor Kushnir 2022-06-11 17:33:40 +03:00 committed by Abs62
parent 10d0d8193b
commit ca0209faff

View file

@ -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 )
{