From e6874452d06bc03c857c41216b73469491245832 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 6 Apr 2012 19:55:35 -0400 Subject: [PATCH] Revert change to TimeView.cpp regarding updating the tooltip. I committed it accidentally. --- src/apps/deskbar/TimeView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/deskbar/TimeView.cpp b/src/apps/deskbar/TimeView.cpp index 96a79365b3..f6d50bba31 100644 --- a/src/apps/deskbar/TimeView.cpp +++ b/src/apps/deskbar/TimeView.cpp @@ -332,10 +332,15 @@ TTimeView::Pulse() Update(); strlcpy(fLastTimeStr, fTimeStr, sizeof(fLastTimeStr)); - strlcpy(fLastDateStr, fDateStr, sizeof(fLastDateStr)); fNeedToUpdate = true; } + // Update the tooltip if the date has changed + if (strcmp(fDateStr, fLastDateStr) != 0) { + strlcpy(fLastDateStr, fDateStr, sizeof(fLastDateStr)); + SetToolTip(fDateStr); + } + if (fNeedToUpdate) { fSeconds = ct->tm_sec; fMinute = ct->tm_min;