diff --git a/daily.cpp b/daily.cpp index 28cdd0a5..0af0e82e 100644 --- a/daily.cpp +++ b/daily.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include //#include //#include @@ -362,6 +363,7 @@ void Daily::Link_clicked(const QUrl &url) // Reload day this->LoadDate(previous_date); + ui->webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, ui->webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)); return; } else if (code=="toggleoxisession") { // Enable/Disable Oximetry session day=PROFILE.GetDay(previous_date,MT_OXIMETER); @@ -374,6 +376,7 @@ void Daily::Link_clicked(const QUrl &url) // Reload day this->LoadDate(previous_date); + ui->webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, ui->webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)); return; } else if (code=="cpap") { day=PROFILE.GetDay(previous_date,MT_CPAP);