File r903745.diff of Package kdepim4

Subject: korganizer: fix what's next view todo links
From: wstephenson@suse.de
Bug: 
Patch-upstream: 903745
--- korganizer/kowhatsnextview.cpp	(revision 903744)
+++ korganizer/kowhatsnextview.cpp	(revision 903745)
@@ -336,14 +336,14 @@ void KOWhatsNextView::showIncidence( con
 {
   Incidence *incidence = 0;
 
-  if ( uid.startsWith( "event://" ) ) {
-    incidence = calendar()->incidence( uid.mid( 8 ) );
-  } else if ( uid.startsWith( "todo://" ) ) {
-    incidence = calendar()->incidence( uid.mid( 7 ) );
+  if ( uid.startsWith( "event:" ) ) {
+    incidence = calendar()->incidence( uid.mid( 6 ) );
+  } else if ( uid.startsWith( "todo:" ) ) {
+    incidence = calendar()->incidence( uid.mid( 5 ) );
   }
   if ( incidence ) {
     emit showIncidenceSignal( incidence );
-  }
+  } 
 }
 
 #include "kowhatsnextview.moc"
Index: korganizer/kowhatsnextview.cpp
===================================================================
openSUSE Build Service is sponsored by