Bug 107104

Summary: konsolekalendar --import does not import
Product: [Applications] konsolekalendar Reporter: Aleksey Nogin <kde-bugs>
Component: generalAssignee: Allen Winter <winter>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Aleksey Nogin 2005-06-09 15:04:38 UTC
Version:           1.2.0 (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs
OS:                Linux

konsolekalendar --verbose --file=foo.ics --import=bar.ics

prints "Calendar bar.ics successfully imported", but foo.ics remains completely unchanged (and strace shows that foo.ics was opened for reading, but bar.ics was never opener and foo.ics was never opened for writing).

% konsolekalendar --version
Qt: 3.3.3
KDE: 3.3.1-3.10 Red Hat
KonsoleKalendar: 1.2.0

I have not tried more receint versions of KDE yet.

Possibly related: bug 88361
Comment 1 Allen Winter 2005-06-11 23:27:18 UTC
Aleksey,
Yes, this seems to be broken in newest konsolekalendar too.

Will try to fix for KDE 3.5 (and KDE 3.4.2 if there is one)
Comment 2 Allen Winter 2005-07-07 02:40:36 UTC
SVN commit 432332 by winterz:

Restort the import feature (--import).
For some reason that I cannot recall either Tuukka or myself commented out
what appears to be working code.  It's back now.
BUGS: 107104



 M  +2 -4      konsolekalendaradd.cpp  


--- trunk/KDE/kdepim/konsolekalendar/konsolekalendaradd.cpp #432331:432332
@@ -114,9 +114,7 @@
 bool KonsoleKalendarAdd::addImportedCalendar()
 {
 
-  // TODO: reimplement this please..
-
-  /*if ( !m_variables->getCalendar()->load( m_variables->getImportFile() ) ) {
+  if ( !m_variables->getCalendar()->load( m_variables->getImportFile() ) ) {
     kdDebug()
       << "konsolekalendaradd.cpp::importCalendar() | "
       << "Can't import file: "
@@ -135,7 +133,7 @@
     m_variables->getCalendar()->save( m_variables->getCalendarFile() );
   } else {
     m_variables->getCalendar()->save();
-  }*/
+  }
 
   return true;
 }