Bug 122498 - DCOP calls stopNetworkJobs()/resumeNetworkJobs() fail to update "File->Go (on|off)line" menu entry or status bar
Summary: DCOP calls stopNetworkJobs()/resumeNetworkJobs() fail to update "File->Go (on...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-22 17:22 UTC by Isaac Wilcox
Modified: 2009-07-23 00:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isaac Wilcox 2006-02-22 17:22:09 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    Debian testing/unstable Packages

Hi,

If you call stopNetworkJobs() while online using the DCOP interface, the call doesn't update the "Go offline" entry in the File menu to say "Go online" as it should.  After the stopNetworkJobs() call the menu entry will still say "Go offline", but clicking it will make you go online.  The same holds for resumeNetworkJobs().

Also, the statusbar isn't changed, which is a problem for two reasons - one, it's better for the user to see the change in the UI if possible (as pointed out in bug 119386), and two, it may continue to show a stale message that was produced by using the menu entry, e.g. continue to show "KMail is set to be online; all network jobs resumed" after stopNetworkJobs() is called, which is plain wrong.

Cheers,

Zak (Isaac Wilcox)
Comment 1 Christophe Marin 2009-07-23 00:18:55 UTC
Fixed in KDE4. 

qdbus org.kde.kmail /KMail stopNetworkJobs will switch to offline mode and the option in the file menu will become "Work Online"