Bug 122498

Summary: DCOP calls stopNetworkJobs()/resumeNetworkJobs() fail to update "File->Go (on|off)line" menu entry or status bar
Product: [Applications] kmail Reporter: Isaac Wilcox <iwilcox>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

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"