diff --git a/sleepyhead/daily.cpp b/sleepyhead/daily.cpp
index b77d929a..6a1f0cca 100644
--- a/sleepyhead/daily.cpp
+++ b/sleepyhead/daily.cpp
@@ -776,8 +776,12 @@ void Daily::LoadDate(QDate date)
ui->calendar->blockSignals(false);
on_calendar_selectionChanged();
}
-
void Daily::on_calendar_selectionChanged()
+{
+ QTimer::singleShot(0, this, SLOT(on_ReloadDay()));
+}
+
+void Daily::on_ReloadDay()
{
graphView()->releaseKeyboard();
QTime time;
@@ -1763,6 +1767,7 @@ void Daily::Unload(QDate date)
return;
}
}
+
webView->setHtml("");
Session *journal=GetJournalSession(date);
diff --git a/sleepyhead/daily.h b/sleepyhead/daily.h
index 6c47a287..3968f930 100644
--- a/sleepyhead/daily.h
+++ b/sleepyhead/daily.h
@@ -145,6 +145,7 @@ public:
void addBookmark(qint64 st, qint64 et, QString text);
private slots:
+ void on_ReloadDay();
/*! \fn on_calendar_currentPageChanged(int year, int month);
\brief Scans through all days for this month, updating the day colors for the calendar object
diff --git a/sleepyhead/mainwindow.ui b/sleepyhead/mainwindow.ui
index 9d786bf3..e624d5fc 100644
--- a/sleepyhead/mainwindow.ui
+++ b/sleepyhead/mainwindow.ui
@@ -1498,7 +1498,7 @@ QToolBox::tab:selected {
0
0
180
- 596
+ 598
@@ -1603,7 +1603,7 @@ QToolBox::tab:selected {
:/icons/bob-v3.0.png:/icons/bob-v3.0.png
- &Navigation
+ Navigation
-
@@ -1912,7 +1912,7 @@ border: 2px solid #56789a; border-radius: 30px;
0
0
180
- 596
+ 598
@@ -1990,7 +1990,7 @@ border: 2px solid #56789a; border-radius: 30px;
:/icons/bookmark.png:/icons/bookmark.png
- &Bookmarks
+ Bookmarks
@@ -3060,7 +3060,7 @@ border-radius: 10px;
0
0
180
- 596
+ 598
@@ -3074,7 +3074,7 @@ border-radius: 10px;
:/icons/trophy.png:/icons/trophy.png
- &Records
+ Records
@@ -3122,7 +3122,7 @@ border-radius: 10px;
0
0
975
- 22
+ 21
@@ -3480,7 +3480,7 @@ border-radius: 10px;
-
+