Diffstat (limited to 'korganizer/koeditorgeneralevent.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeditorgeneralevent.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp index 42c3df1..fc5be71 100644 --- a/korganizer/koeditorgeneralevent.cpp +++ b/korganizer/koeditorgeneralevent.cpp @@ -52,2 +52,3 @@ KOEditorGeneralEvent::KOEditorGeneralEvent(QObject* parent, { + mTemplate = false; connect(this,SIGNAL(dateTimesChanged(QDateTime,QDateTime)), @@ -177,3 +178,3 @@ void KOEditorGeneralEvent::setDateTimes(QDateTime start, QDateTime end) // kdDebug() << "KOEditorGeneralEvent::setDateTimes(): Start DateTime: " << start.toString() << endl; - + if ( !mTemplate ) mStartDateEdit->setDate(start.date()); @@ -183,2 +184,3 @@ void KOEditorGeneralEvent::setDateTimes(QDateTime start, QDateTime end) mStartTimeEdit->blockSignals( false ); + if ( !mTemplate ) mEndDateEdit->setDate(end.date()); @@ -263,3 +265,3 @@ void KOEditorGeneralEvent::readEvent( Event *event, bool tmpl ) - if ( !tmpl ) { + mTemplate = tmpl; // the rest is for the events only @@ -269,4 +271,4 @@ void KOEditorGeneralEvent::readEvent( Event *event, bool tmpl ) setDateTimes(event->dtStart(),event->dtEnd()); - } + mTemplate = false; switch( event->transparency() ) { |