summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-03 23:11:33 (UTC)
committer zautrix <zautrix>2005-06-03 23:11:33 (UTC)
commitaa0f7df485c3ff0c298d4924ac1e8a5e9e6da627 (patch) (side-by-side diff)
treeeed3edfc9210e1bca07de6d642dc2486ba8bedfd
parent858b047efb5627824438cb3877e7bec0cebb3751 (diff)
downloadkdepimpi-aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627.zip
kdepimpi-aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627.tar.gz
kdepimpi-aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627.tar.bz2
fixxx
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/calendarview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 36db9c4..c01be9b 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -609,49 +609,49 @@ void CalendarView::init()
this, SLOT(insertBirthdays(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&)));
#endif
mDateNavigator->setCalendar( mCalendar );
}
CalendarView::~CalendarView()
{
// kdDebug() << "~CalendarView()" << endl;
//qDebug("CalendarView::~CalendarView() ");
delete mDialogManager;
delete mViewManager;
delete mStorage;
delete mDateFrame ;
delete beamDialog;
delete mEventViewerDialog;
//kdDebug() << "~CalendarView() done" << endl;
}
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;
- //secs -= ( 3600 * 24*3 ); // debug only
+ 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();
QPtrList<Incidence> al;
Incidence* inL = el.first();
while ( inL ) {
bool ok = false;
int offset = 0;
QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ;
if ( ok ) {
//qDebug("OK %s",next.toString().latin1());
if ( next < QDateTime::currentDateTime() ) {
al.append( inL );
qDebug("found missed alarm: %s ", inL->summary().latin1() );
}
}
inL = el.next();
}
if ( al.count() ) {
QDialog dia ( this, "huhu", true );
dia.setCaption( i18n("KO/Pi: Missing alarm notification!") );
QVBoxLayout* lay = new QVBoxLayout( &dia );
lay->setSpacing( 3 );
lay->setMargin( 3 );