summaryrefslogtreecommitdiffabout
path: root/libkcal
Unidiff
Diffstat (limited to 'libkcal') (more/less context) (show whitespace changes)
-rw-r--r--libkcal/calendarlocal.cpp1
-rw-r--r--libkcal/icalformat.cpp9
-rw-r--r--libkcal/icalformat.h3
-rw-r--r--libkcal/todo.cpp5
4 files changed, 14 insertions, 4 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp
index e37a7ad..eef8327 100644
--- a/libkcal/calendarlocal.cpp
+++ b/libkcal/calendarlocal.cpp
@@ -67,2 +67,3 @@ CalendarLocal::~CalendarLocal()
67{ 67{
68 registerObserver( 0 );
68 if ( mDeleteIncidencesOnClose ) 69 if ( mDeleteIncidencesOnClose )
diff --git a/libkcal/icalformat.cpp b/libkcal/icalformat.cpp
index 5877406..6f3a799 100644
--- a/libkcal/icalformat.cpp
+++ b/libkcal/icalformat.cpp
@@ -52,4 +52,5 @@ using namespace KCal;
52 52
53ICalFormat::ICalFormat( ) 53ICalFormat::ICalFormat( bool pe )
54{ 54{
55 mProcessEvents = pe;
55 mImpl = new ICalFormatImpl( this ); 56 mImpl = new ICalFormatImpl( this );
@@ -191,4 +192,7 @@ QString ICalFormat::toString( Calendar *cal )
191 //qDebug(" todos "); 192 //qDebug(" todos ");
193 if ( mProcessEvents ) {
194 //qDebug("mProcessEvents ");
192 qApp->processEvents(); 195 qApp->processEvents();
193 } 196 }
197 }
194 // events 198 // events
@@ -200,2 +204,3 @@ QString ICalFormat::toString( Calendar *cal )
200 //qDebug("events "); 204 //qDebug("events ");
205 if ( mProcessEvents )
201 qApp->processEvents(); 206 qApp->processEvents();
@@ -210,2 +215,3 @@ QString ICalFormat::toString( Calendar *cal )
210 //qDebug("journals "); 215 //qDebug("journals ");
216 if ( mProcessEvents )
211 qApp->processEvents(); 217 qApp->processEvents();
@@ -215,2 +221,3 @@ QString ICalFormat::toString( Calendar *cal )
215 text = icalcomponent_as_ical_string( calendar ); 221 text = icalcomponent_as_ical_string( calendar );
222 if ( mProcessEvents )
216 qApp->processEvents(); 223 qApp->processEvents();
diff --git a/libkcal/icalformat.h b/libkcal/icalformat.h
index 485ab6e..a770dbb 100644
--- a/libkcal/icalformat.h
+++ b/libkcal/icalformat.h
@@ -42,3 +42,3 @@ class ICalFormat : public CalFormat {
42 /** Create new iCalendar format. */ 42 /** Create new iCalendar format. */
43 ICalFormat( ); 43 ICalFormat( bool pe = true);
44 virtual ~ICalFormat(); 44 virtual ~ICalFormat();
@@ -105,2 +105,3 @@ class ICalFormat : public CalFormat {
105 private: 105 private:
106 bool mProcessEvents;
106 ICalFormatImpl *mImpl; 107 ICalFormatImpl *mImpl;
diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp
index 4ada2d8..7bf756a 100644
--- a/libkcal/todo.cpp
+++ b/libkcal/todo.cpp
@@ -68,2 +68,3 @@ void Todo::setRunningFalse( QString s )
68 mRunning = false; 68 mRunning = false;
69 if ( mRunSaveTimer )
69 mRunSaveTimer->stop(); 70 mRunSaveTimer->stop();
@@ -141,3 +142,3 @@ void Todo::saveRunningInfoToFile( QString comment )
141 cal.addIncidence( to ); 142 cal.addIncidence( to );
142 ICalFormat format; 143 ICalFormat format( false );
143 file = dir +"/" +file +".ics"; 144 file = dir +"/" +file +".ics";
@@ -169,3 +170,3 @@ void Todo::saveParents()
169 cal.addIncidence( par ); 170 cal.addIncidence( par );
170 ICalFormat format; 171 ICalFormat format( false );
171 format.save( &cal, file ); 172 format.save( &cal, file );