Commit 39aadaca authored by Matthias Möller's avatar Matthias Möller

if the current sites is loaded twice, history will ignore this double loading

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14429 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1d9e6156
......@@ -87,6 +87,11 @@ void HelpBrowser::rememberHistory (const QUrl& _url) {
QUrl newUrl = resolveUrl(_url);
//if the site is already the current site
//don't change the memory stack
if ((visitedPages_.size() > 0) && (newUrl == visitedPages_[currentPage_]))
return;
// Delete the visited pages after the current position if they exist
if ( currentPage_ < visitedPages_.size()-1 )
visitedPages_.erase((visitedPages_.begin()+currentPage_+1),visitedPages_.end());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment