[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace/KDE/4.9] plasma/generic/applets/analog-clock: Fix initial paint for analog clock
From:       Christoph Feck <christoph () maxiom ! de>
Date:       2012-11-11 2:59:40
Message-ID: 20121111025940.AA128A6091 () git ! kde ! org
[Download RAW message or body]

Git commit 1041099dd18cc46d2c801a7b790ce06c6bed9503 by Christoph Feck.
Committed on 11/11/2012 at 03:58.
Pushed by cfeck into branch 'KDE/4.9'.

Fix initial paint for analog clock

Unconditionally setting repaint mode to RepaintHands will clear
the initially needed RepaintAll mode, causing the background
cache not to be initialized.

BUG: 307998
FIXED-IN: KDE 4.9.4

M  +3    -1    plasma/generic/applets/analog-clock/clock.cpp

http://commits.kde.org/kde-workspace/1041099dd18cc46d2c801a7b790ce06c6bed9503

diff --git a/plasma/generic/applets/analog-clock/clock.cpp \
b/plasma/generic/applets/analog-clock/clock.cpp index 8cb5b6a..59f931b 100644
--- a/plasma/generic/applets/analog-clock/clock.cpp
+++ b/plasma/generic/applets/analog-clock/clock.cpp
@@ -152,7 +152,9 @@ void Clock::dataUpdated(const QString& source, const \
Plasma::DataEngine::Data &d  {
     Q_UNUSED(source);
     m_time = data["Time"].toTime();
-    m_repaintCache = RepaintHands;
+    if (m_repaintCache != RepaintAll) {
+        m_repaintCache = RepaintHands;
+    }
 
     if (Plasma::ToolTipManager::self()->isVisible(this)) {
         updateTipContent();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic