summaryrefslogtreecommitdiffstats
path: root/korganizer/incidencechanger.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-03 02:40:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-03 02:40:06 +0000
commitb35cd0e8350babc091667a5070f8ff6e359e5750 (patch)
treeabc1612f77c9d692fb0d810c42bae10e28b9121c /korganizer/incidencechanger.cpp
parent4da59365263742bd16027434e2aa7d11e17d7909 (diff)
downloadtdepim-b35cd0e8350babc091667a5070f8ff6e359e5750.tar.gz
tdepim-b35cd0e8350babc091667a5070f8ff6e359e5750.zip
Hacked in a temporary fix for three GroupWare popups showing up when a single instance of a recurring meeting is resized in the agenda view
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1171222 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/incidencechanger.cpp')
-rw-r--r--korganizer/incidencechanger.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/korganizer/incidencechanger.cpp b/korganizer/incidencechanger.cpp
index 1c41c5cd9..f0dcb7b12 100644
--- a/korganizer/incidencechanger.cpp
+++ b/korganizer/incidencechanger.cpp
@@ -329,6 +329,14 @@ bool IncidenceChanger::changeIncidence( Incidence *oldinc, Incidence *newinc,
KOGlobals::WhatChanged action,
TQWidget *parent )
{
+ return changeIncidence( oldinc, newinc, action, parent, 0 );
+}
+
+bool IncidenceChanger::changeIncidence( Incidence *oldinc, Incidence *newinc,
+ KOGlobals::WhatChanged action,
+ TQWidget *parent,
+ int dontAskForGroupware )
+{
kdDebug(5850)<<"IncidenceChanger::changeIncidence for incidence \""<<newinc->summary()<<"\" ( old one was \""<<oldinc->summary()<<"\")"<<endl;
if ( incidencesEqual( newinc, oldinc ) ) {
// Don't do anything
@@ -347,7 +355,7 @@ kdDebug(5850)<<"IncidenceChanger::changeIncidence for incidence \""<<newinc->sum
success = KOGroupware::instance()->sendICalMessage(
parent,
KCal::Scheduler::Request,
- newinc, KOGlobals::INCIDENCEEDITED, attendeeStatusChanged );
+ newinc, KOGlobals::INCIDENCEEDITED, attendeeStatusChanged, dontAskForGroupware );
}
if ( success ) {
@@ -366,6 +374,13 @@ bool IncidenceChanger::addIncidence( Incidence *incidence,
ResourceCalendar *res, const TQString &subRes,
TQWidget *parent )
{
+ return addIncidence( incidence, res, subRes, parent, 0 );
+}
+
+bool IncidenceChanger::addIncidence( Incidence *incidence,
+ ResourceCalendar *res, const TQString &subRes,
+ TQWidget *parent, int dontAskForGroupware )
+{
CalendarResources *stdcal = dynamic_cast<CalendarResources *>( mCalendar );
if( stdcal && !stdcal->hasCalendarResources() ) {
KMessageBox::sorry(
@@ -440,7 +455,7 @@ bool IncidenceChanger::addIncidence( Incidence *incidence,
if ( !KOGroupware::instance()->sendICalMessage(
parent,
KCal::Scheduler::Request,
- incidence, KOGlobals::INCIDENCEADDED, false ) ) {
+ incidence, KOGlobals::INCIDENCEADDED, false, dontAskForGroupware ) ) {
KMessageBox::sorry(
parent,
i18n( "Attempt to send the scheduling message failed. "