-rw-r--r-- | libkcal/icalformat.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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 | ||
53 | ICalFormat::ICalFormat( ) | 53 | ICalFormat::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(); |