Summary: | pop3 resources switches itself from offline to online if "interval mail checking" is enabled | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Raymond Wooninck <tittiatcoke> |
Component: | POP3 Resource | Assignee: | Thomas McGuire <mcguire> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amantia, bluescreenavenger, dev+kde, kdepim-bugs, vkrause |
Priority: | NOR | ||
Version: | 1.4.50 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Raymond Wooninck
2010-10-16 19:29:00 UTC
commit df948b1d213afe403cda62686aa1e2d285b233d9 branch master Author: Thomas McGuire <mcguire@kde.org> Date: Fri Dec 24 19:06:21 2010 +0100 Don't check mail automatically when the resource is offline. BUG: 254395 diff --git a/resources/pop3/pop3resource.cpp b/resources/pop3/pop3resource.cpp index a285c98..42f3c25 100644 --- a/resources/pop3/pop3resource.cpp +++ b/resources/pop3/pop3resource.cpp @@ -83,10 +83,14 @@ void POP3Resource::updateIntervalTimer() void POP3Resource::intervalCheckTriggered() { - kDebug() << "Starting interval mail check."; Q_ASSERT( mState == Idle ); - startMailCheck(); - mIntervalCheckInProgress = true; + if (isOnline()) { + kDebug() << "Starting interval mail check."; + startMailCheck(); + mIntervalCheckInProgress = true; + } else { + mIntervalTimer->start(); + } } void POP3Resource::aboutToQuit() *** Bug 261572 has been marked as a duplicate of this bug. *** *** Bug 262372 has been marked as a duplicate of this bug. *** *** Bug 250208 has been marked as a duplicate of this bug. *** |