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

List:       kde-commits
Subject:    branches/KDE/4.6/kdebase/runtime/nepomuk/services/backupsync/service
From:       Vishesh Handa <handa.vish () gmail ! com>
Date:       2011-01-09 20:45:14
Message-ID: 20110109204514.74117AC8B2 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1213256 by vhanda:

BACKPORT: Properly initialize m_daysBetweenBackups. This fixes the bug where daily \
backups would not always be performed.



 M  +5 -4      backupmanager.cpp  


--- branches/KDE/4.6/kdebase/runtime/nepomuk/services/backupsync/service/backupmanager.cpp \
#1213255:1213256 @@ -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