Version: unknown (using KDE 3.5.4 "release 78.1" , openSUSE ) Compiler: Target: i586-suse-linux OS: Linux (i686) release 2.6.16.21-0.25-smp 1) Run Kontact, enable and select Karm plugin/component. 2) Create new task "Test" with +1 hour time. 3) Select "Start new session" from "File" menu. The session time is not zeroed. The problem exists only in Kontact's plugin. There is no problem in standalone karm.
Thanks for the report.
Problem with missing slots in karm_part.h. Here is a fix. diff -u -r kdepim-3.5.4/karm.orig/karm_part.cpp kdepim-3.5.4/karm/karm_part.cpp --- kdepim-3.5.4/karm.orig/karm_part.cpp 2006-09-29 14:37:27.000000000 +0400 +++ kdepim-3.5.4/karm/karm_part.cpp 2006-09-29 14:43:45.000000000 +0400 @@ -693,6 +693,11 @@ return _taskView->importPlanner(fileName); } +void karmPart::startNewSession() +{ + _taskView->startNewSession(); + _taskView->save(); +} #include <qpopupmenu.h> diff -u -r kdepim-3.5.4/karm.orig/karm_part.h kdepim-3.5.4/karm/karm_part.h --- kdepim-3.5.4/karm.orig/karm_part.h 2006-09-29 14:37:27.000000000 +0400 +++ kdepim-3.5.4/karm/karm_part.h 2006-09-29 14:39:08.000000000 +0400 @@ -112,6 +112,7 @@ void fileOpen(); void fileSaveAs(); void slotSelectionChanged(); + void startNewSession(); };
Sergey, what's your surname so I can write it into the commit message when I post the patch ?
I asked coolo for an exception to get this patch still into the new KDE 3.5.5.
Thank you, there is no need to post my details (name or surname). Great!! I'll glad see karm plugin fixed so soon. :)
SVN commit 590178 by tstaerk: Allow starting a new session in the kontact plugin. Thanks to Sergey for patch and notification. CCBUGS:134833 M +5 -1 karm_part.cpp M +1 -1 karm_part.h --- branches/KDE/3.5/kdepim/karm/karm_part.cpp #590177:590178 @@ -693,7 +693,11 @@ return _taskView->importPlanner(fileName); } +void karmPart::startNewSession() +{ + _taskView->startNewSession(); + _taskView->save(); +} - #include <qpopupmenu.h> #include "karm_part.moc" --- branches/KDE/3.5/kdepim/karm/karm_part.h #590177:590178 @@ -112,7 +112,7 @@ void fileOpen(); void fileSaveAs(); void slotSelectionChanged(); - + void startNewSession(); }; class KInstance;
SVN commit 590467 by tstaerk: Reset session times also in kontact plugin. BUGS:134833 M +6 -1 karm_part.cpp M +1 -0 karm_part.h --- trunk/KDE/kdepim/karm/karm_part.cpp #590466:590467 @@ -670,7 +670,12 @@ return _taskView->importPlanner(fileName); } +void karmPart::startNewSession() +{ + _taskView->startNewSession(); + _taskView->save(); +} + - #include <q3popupmenu.h> #include "karm_part.moc" --- trunk/KDE/kdepim/karm/karm_part.h #590466:590467 @@ -112,6 +112,7 @@ void fileOpen(); void fileSaveAs(); void slotSelectionChanged(); + void startNewSession(); public slots: void setStatusBar(const QString & qs);
As you can tell from http://websvn.kde.org/tags, your fix is in KDE 3.5.5 that came out 16 hours ago.
*** Bug 137237 has been marked as a duplicate of this bug. ***