author | zautrix <zautrix> | 2005-06-07 06:37:42 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-07 06:37:42 (UTC) |
commit | ff8af7ccdd6346bba1cb871c33931352bbafe40e (patch) (side-by-side diff) | |
tree | 8a905fe8237cd1be7276b3c5f10479a9efdb6ee5 | |
parent | 79f58240bc34d20601abe3325e1dc7e76e1ebe39 (diff) | |
download | kdepimpi-ff8af7ccdd6346bba1cb871c33931352bbafe40e.zip kdepimpi-ff8af7ccdd6346bba1cb871c33931352bbafe40e.tar.gz kdepimpi-ff8af7ccdd6346bba1cb871c33931352bbafe40e.tar.bz2 |
fixx
-rw-r--r-- | kaddressbook/mainembedded.cpp | 1 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 50db377..93ba53c 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp @@ -108,8 +108,9 @@ int main( int argc, char **argv ) list << QString::number( y ); list << QString::number( w ); list << QString::number( h ); config->writeEntry("MainLayout",list ); + config->sync(); #endif dumpMissing(); KPimGlobalPrefs::instance()->writeConfig(); diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index e13d0be..720ad78 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -639,9 +639,10 @@ void CalendarView::checkAlarms() { KConfig *config = KOGlobals::config(); config->setGroup( "AppRun" ); QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); - int secs = config->readNumEntry( "LatestProgramStop" ) - 30; + int secto = dt.secsTo( QDateTime::currentDateTime() ); + int secs = config->readNumEntry( "LatestProgramStop" , secto) - 30; //secs -= ( 3600 * 24*3 ); // debug only QDateTime latest = dt.addSecs ( secs ); qDebug("KO: Last termination on %s ", latest.toString().latin1()); QPtrList<Incidence> el = mCalendar->rawIncidences(); |