[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/timer
From: Davide Bettio <davide.bettio () kdemail ! net>
Date: 2009-04-06 16:23:19
Message-ID: 1239034999.494945.23915.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 950191 by bettio:
Stopped mode at startup.
M +9 -6 timer.cpp
--- trunk/KDE/kdeplasma-addons/applets/timer/timer.cpp #950190:950191
@@ -107,12 +107,15 @@
createMenuAction();
m_running = cg.readEntry("running", false);
- QDateTime startedAt = cg.readEntry("startedAt", QDateTime::currentDateTime());
- int tmpSeconds = cg.readEntry("seconds", 0) - startedAt.secsTo(QDateTime::currentDateTime());
- if (tmpSeconds > 0){
- m_seconds = tmpSeconds;
- m_running = true;
- startTimer();
+ if (m_running){
+ QDateTime startedAt = cg.readEntry("startedAt", QDateTime::currentDateTime());
+ int tmpSeconds = cg.readEntry("seconds", 0) - startedAt.secsTo(QDateTime::currentDateTime());
+ if (tmpSeconds > 0){
+ m_seconds = tmpSeconds;
+ startTimer();
+ }
+ }else{
+ m_seconds = cg.readEntry("seconds", 0);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic