summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koeditorgeneralevent.cpp8
-rw-r--r--korganizer/koeditorgeneralevent.h1
2 files changed, 6 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() ) {
diff --git a/korganizer/koeditorgeneralevent.h b/korganizer/koeditorgeneralevent.h
index 188dc93..0174788 100644
--- a/korganizer/koeditorgeneralevent.h
+++ b/korganizer/koeditorgeneralevent.h
@@ -92,2 +92,3 @@ class KOEditorGeneralEvent : public KOEditorGeneral
private:
+ bool mTemplate;
QLabel *mStartDateLabel;