summaryrefslogtreecommitdiffabout
path: root/korganizer/calendarview.cpp
authorzautrix <zautrix>2005-07-10 00:09:04 (UTC)
committer zautrix <zautrix>2005-07-10 00:09:04 (UTC)
commit2d1e1fe5d290503db8c0462fc294f5c04f58e95c (patch) (side-by-side diff)
treeffb1ba581d7a766cb736d42d43dad88a54dabdfd /korganizer/calendarview.cpp
parent2aabde6c21d6dc4f9de8cf3ac17b98053961cc6b (diff)
downloadkdepimpi-2d1e1fe5d290503db8c0462fc294f5c04f58e95c.zip
kdepimpi-2d1e1fe5d290503db8c0462fc294f5c04f58e95c.tar.gz
kdepimpi-2d1e1fe5d290503db8c0462fc294f5c04f58e95c.tar.bz2
fixxx
Diffstat (limited to 'korganizer/calendarview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index f9685e9..ab69158 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -674,13 +674,15 @@ void CalendarView::nextConflict( bool all, bool allday )
bool found = false;
Event * cE = 0;
Event * cE2 = 0;
QPtrList<Event> testlist2 = testlist;
test = testlist.first();
bool skip = false;
+ topLevelWidget()->setCaption( i18n("Checking conflicts ... please wait") );
while ( test ) {
+ qApp->processEvents();
skip = false;
if ( !all ) skip = ( allday != test->doesFloat() );
if ( !skip ) {
Event * test2 = testlist2.first();
while ( test2 ) {
skip = false;
@@ -2765,24 +2767,22 @@ void CalendarView::changeEventDisplay(Event *which, int action)
void CalendarView::checkConflictForEvent()
{
if (!KOPrefs::instance()->mConfirm)
return;
if ( ! mConflictingEvent ) return;
- if ( mConflictingEvent->isHoliday() || mConflictingEvent->isBirthday() || mConflictingEvent->isAnniversary() ) {
- mConflictingEvent = 0;
- return;
- }
+ topLevelWidget()->setCaption( i18n("Checking conflicts ... please wait") );
QPtrList<Event> testlist = mCalendar->events();
Event * test = testlist.first();
QDateTime conflict;
QDateTime retVal;
bool found = false;
Event * cE = 0;
QDateTime current = QDateTime::currentDateTime();
while ( test ) {
+ qApp->processEvents();
if ( !test->doesFloat() ) {
if ( mConflictingEvent->isOverlapping ( test, &retVal, &current ) ) {
if ( ! found ) {
conflict = retVal;
cE = test;
} else {