[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/nepomuk/services/backupsync/service
From: Vishesh Handa <handa.vish () gmail ! com>
Date: 2011-01-09 20:44:27
Message-ID: 20110109204427.08328AC8B2 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1213255 by vhanda:
Properly initialize m_daysBetweenBackups. This fixes the bug where daily backups \
would not always be performed.
BUG: 261608
M +5 -4 backupmanager.cpp
--- trunk/KDE/kdebase/runtime/nepomuk/services/backupsync/service/backupmanager.cpp \
#1213254:1213255 @@ -56,6 +56,7 @@
con.registerObject( QLatin1String("/backupmanager"), this );
m_backupLocation = KStandardDirs::locateLocal( "data", \
"nepomuk/backupsync/backups/" ); + m_daysBetweenBackups = 0;
KDirWatch* dirWatch = KDirWatch::self();
connect( dirWatch, SIGNAL( dirty( const QString& ) ),
@@ -126,11 +127,11 @@
QString timeString = m_config.group("Backup").readEntry( "backup time", \
QTime().toString( Qt::ISODate ) ); m_backupTime = QTime::fromString( timeString, \
Qt::ISODate );
- //if( freq == QLatin1String("daily") ) {
- // Nothing to do
- //}
+ if( freq == QLatin1String("daily") ) {
+ m_daysBetweenBackups = 0;
+ }
- if( freq == QLatin1String("weekly") ) {
+ else if( freq == QLatin1String("weekly") ) {
const KCalendarSystem* cal = KGlobal::locale()->calendar();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic