[Bug 150835] New: KMail wakes up every second

Alan Jenkins alan-jenkins at tuffmail.co.uk
Sun Oct 14 18:16:41 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=150835         
           Summary: KMail wakes up every second
           Product: kmail
           Version: 1.9.6
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs kde org
        ReportedBy: alan-jenkins tuffmail co uk


Version:           1.9.6 (using KDE KDE 3.5.6)
Installed from:    Unspecified Linux
OS:                Linux

KMHeaders:2049:

void KMHeaders::resetCurrentTime()
{
    mDate.reset();
    QTimer::singleShot( 1000, this, SLOT( resetCurrentTime() ) );
}

I'm guessing mDate.reset() is responsible for updating "Yesterday"/"Thursday"/"2007-10-8" in the messages list.

Proposed fix: change it to only wake up once every minute.  Align the timer to schedule it for the exact time the minute changes.  The alignment is what's stopping me posting a patch immediately, but I'm sure it won't take me long to find the code for "how long until the next minute rolls over?".



More information about the Kdepim-bugs mailing list