Summary: | Cancelling a new event when more than one Calendar are visible gives odd behavior | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Jose Hernandez <code> |
Component: | general | Assignee: | Cornelius Schumacher <schumacher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jose Hernandez
2004-01-13 07:49:30 UTC
Subject: osnabrueck_branch: kdepim/korganizer CVS commit by kainhofe: If you had multiple writeable resources and you added an event, but pressed cancel on the resource selection dialog (so the item won't be added to the calendar), the agenda item was still added to the view. This no longer happens. CCMAIL: 72527-done@bugs.kde.org M +3 -3 koeventeditor.cpp 1.63.2.2 --- kdepim/korganizer/koeventeditor.cpp #1.63.2.1:1.63.2.2 @@ -260,7 +260,7 @@ bool KOEventEditor::processInput() mEvent->setOrganizer( KOPrefs::instance()->email() ); writeEvent( mEvent ); - if( !KOPrefs::instance()->mUseGroupwareCommunication || - KOGroupware::instance()->sendICalMessage( this, KCal::Scheduler::Request, mEvent ) ) { - mCalendar->addEvent( mEvent ); + if( (!KOPrefs::instance()->mUseGroupwareCommunication || + KOGroupware::instance()->sendICalMessage( this, KCal::Scheduler::Request, mEvent ) ) && + mCalendar->addEvent( mEvent ) ) { emit eventAdded( mEvent ); } else { |