[Bug 233518] New: knotes loads every note twice on startup

Matthias Heinz m.heinz at gmx.net
Tue Apr 6 17:13:33 BST 2010


https://bugs.kde.org/show_bug.cgi?id=233518

           Summary: knotes loads every note twice on startup
           Product: knotes
           Version: unspecified
          Platform: Debian testing
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: m.heinz at gmx.net


Version:            (using KDE 4.4.2)
Installed from:    Debian testing/unstable Packages

Hi,

since kde 4.3 (I'm note sure it wasn't also in 4.2, too) knotes loads every
note twice at startup.

I did some debugging and think that this must have something to do with
kressources, but this is where I couldn't get any further.

In resourcemanager.cpp line 44  there's:
   m_manager = new KRES::Manager<ResourceNotes>( "notes" );

well, this lets knotes print a warning:
<unknown program name>(14804)/ main: Unknown resource type:  "notes" 

if i change "notes" to "note" I get:
<unknown program name>(14635)/ main: Unknown resource type:  "note"
so it should be related to this. (When changing to "note" all notes are only
loaded one time... but this is more like fixing a bug with a bug...)


Anyway, line 65, in the for-loop, there seems to be two ressource with the name
"Notes":

knotes(14802) KNotesResourceManager::load: "Opening resource Notes"
knotes(14802) KNotesResourceManager::load: "Opening resource Notes"


Well, looks like a ResourceManager bug. Somehow it opens the notes.ics twice
(well, at least it returns it twice...)


Hopefully this is enough info to fix this.


Best regards,
Matthias

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list