[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/kdepim/enterprise/kdepim/korganizer
From:       Allen Winter <winter () kde ! org>
Date:       2010-11-01 23:15:46
Message-ID: 20101101231546.382C4AC89B () svn ! kde ! org
[Download RAW message or body]

SVN commit 1192080 by winterz:

allow the user to send back modified task invitations to the organizer
if the completion percentage has been changed only.
for critical kolab/issue4360

MERGE: trunk,e35tag



 M  +16 -1     kogroupware.cpp  


--- branches/kdepim/enterprise/kdepim/korganizer/kogroupware.cpp #1192079:1192080
@@ -524,7 +524,22 @@
     }
   } else if( incidence->type() == "Todo" ) {
     QString txt;
-    if ( attendeeStatusChanged && method == Scheduler::Request ) {
+    Todo *todo = static_cast<Todo *>( incidence );
+    Todo *oldtodo = static_cast<Todo *>( oldincidence );
+    if ( todo && oldtodo &&
+         todo->percentComplete() != oldtodo->percentComplete() &&
+         method == Scheduler::Request ) {
+      txt = i18n( "Your completion status in this task has been changed. "
+                  "Do you want to send a status update to the task organizer?" );
+      method = Scheduler::Reply;
+      if ( useLastDialogAnswer ) {
+        rc = lastUsedDialogAnswer;
+      } else {
+        lastUsedDialogAnswer = rc = KMessageBox::questionYesNo(
+          parent, txt, i18n( "Group Scheduling Email" ),
+          KGuiItem( i18n( "Send Update" ) ), KGuiItem( i18n( "Do Not Send" ) ) );
+      }
+    } else if ( attendeeStatusChanged && method == Scheduler::Request ) {
       txt = i18n( "Your status as a participant in this task changed. "
                   "Do you want to send a status update to the task organizer?" );
       method = Scheduler::Reply;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic