<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>118381</bug_id>
          
          <creation_ts>2005-12-15 15:21:19 +0000</creation_ts>
          <short_desc>Mistake in reporting upcoming German Holidays on Overview page</short_desc>
          <delta_ts>2005-12-15 22:05:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kontact</product>
          <component>summary</component>
          <version>1.1</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Isphording">a.isphording</reporter>
          <assigned_to name="Allen Winter">winter</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>398829</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Isphording">a.isphording</who>
    <bug_when>2005-12-15 15:21:19 +0000</bug_when>
    <thetext>Version:           1.1 (using KDE 3.4.2 Level &quot;b&quot; , SUSE 10.0)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.7-default

On the Overview page of the German language version of Kontact an upcoming holiday (in this case Advent 4th) is displayed as being in three days, namely on Sunday the 18th of December. This is correct. However, after using Kontace for a while, this always changes to &quot;Advent 3rd coming up in two days on Saturday, Dec 17.&quot; In the calendar it is still displayed on the correct day, Sunday.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398970</commentid>
    <comment_count>1</comment_count>
    <who name="Allen Winter">winter</who>
    <bug_when>2005-12-15 22:03:26 +0000</bug_when>
    <thetext>SVN commit 488768 by winterz:

Fix for holidays going whacky.  Apparently, the libkholidays stuff
isn&apos;t re-entrant.  In any event, one day (far, far away) we will
rewrite libkholidays and it will be wonderful.

So watch for KDE 3.5.1 to get this fix.

BUGS: 118381, 117545


 M  +12 -16    sdsummarywidget.cpp  
 M  +0 -1      sdsummarywidget.h  


--- branches/KDE/3.5/kdepim/kontact/plugins/specialdates/sdsummarywidget.cpp #488767:488768
@@ -79,7 +79,7 @@
 
 SDSummaryWidget::SDSummaryWidget( Kontact::Plugin *plugin, QWidget *parent,
                                     const char *name )
-  : Kontact::Summary( parent, name ), mPlugin( plugin ), mCalendar( 0 )
+  : Kontact::Summary( parent, name ), mPlugin( plugin ), mCalendar( 0 ), mHolidays( 0 )
 {
   // Create the Summary Layout
   QVBoxLayout *mainLayout = new QVBoxLayout( this, 3, 3 );
@@ -87,7 +87,7 @@
   QPixmap icon = KGlobal::iconLoader()-&gt;loadIcon( &quot;cookie&quot;,
                     KIcon::Desktop, KIcon::SizeMedium );
 
-  QWidget *header = createHeader( this, icon, i18n( &quot;Special Dates&quot; ) );
+  QWidget *header = createHeader( this, icon, i18n( &quot;Upcoming Special Dates&quot; ) );
   mainLayout-&gt;addWidget(header);
 
   mLayout = new QGridLayout( mainLayout, 7, 6, 3 );
@@ -145,22 +145,22 @@
   config.setGroup( &quot;Days&quot; );
   mDaysAhead = config.readNumEntry( &quot;DaysToShow&quot;, 7 );
 
-  config.setGroup( &quot;EventTypes&quot; );
+  config.setGroup( &quot;Show&quot; );
   mShowBirthdaysFromKAB =
-    config.readBoolEntry( &quot;ShowBirthdaysFromContacts&quot;, true );
+    config.readBoolEntry( &quot;BirthdaysFromContacts&quot;, true );
   mShowBirthdaysFromCal =
-    config.readBoolEntry( &quot;ShowBirthdaysFromCalendar&quot;, true );
+    config.readBoolEntry( &quot;BirthdaysFromCalendar&quot;, true );
 
   mShowAnniversariesFromKAB =
-    config.readBoolEntry( &quot;ShowAnniversariesFromContacts&quot;, true );
+    config.readBoolEntry( &quot;AnniversariesFromContacts&quot;, true );
   mShowAnniversariesFromCal =
-    config.readBoolEntry( &quot;ShowAnniversariesFromCalendar&quot;, true );
+    config.readBoolEntry( &quot;AnniversariesFromCalendar&quot;, true );
 
   mShowHolidays =
-    config.readBoolEntry( &quot;ShowHolidays&quot;, true );
+    config.readBoolEntry( &quot;HolidaysFromCalendar&quot;, true );
 
   mShowSpecialsFromCal =
-    config.readBoolEntry( &quot;ShowSpecialsFromCalendar&quot;, true );
+    config.readBoolEntry( &quot;SpecialsFromCalendar&quot;, true );
 
   updateView();
 }
@@ -170,13 +170,9 @@
   KConfig hconfig( &quot;korganizerrc&quot; );
   hconfig.setGroup( &quot;Time &amp; Date&quot; );
   QString location = hconfig.readEntry( &quot;Holidays&quot; );
-  if ( !location.isNull() ) {
-    if ( location != mLastLocation ) {
-      if ( !mLastLocation.isNull() &amp;&amp; !mLastLocation.isEmpty() )
-        delete mHolidays;
-      mLastLocation = location;
-      mHolidays = new KHolidays::KHolidays( location );
-    }
+  if ( !location.isEmpty() ) {
+    if ( mHolidays ) delete mHolidays;
+    mHolidays = new KHolidays( location );
     return true;
   }
   return false;
--- branches/KDE/3.5/kdepim/kontact/plugins/specialdates/sdsummarywidget.h #488767:488768
@@ -78,7 +78,6 @@
     bool mShowHolidays;
     bool mShowSpecialsFromCal;
 
-    QString mLastLocation;
     KHolidays::KHolidays *mHolidays;
 };
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398972</commentid>
    <comment_count>2</comment_count>
    <who name="Mathias Homann">Mathias.Homann</who>
    <bug_when>2005-12-15 22:05:43 +0000</bug_when>
    <thetext>so, when&apos;s kde 3.5.1 due? there are loads of other bugs, especially in kontact summary, that already had been fixed once during the kde 3.4.x cycle...
like, refreshing of mail summary and such...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>