Bug 153577

Summary: doesn't restore mainwindow from systray icon
Product: [Applications] akregator Reporter: Andreas Pakulat <apaku>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: axela74, gabrimonfa, haakon+kdebugs, javi.azuaga, opensourcecat, osterfeld, richard.bos, samchim, schoppehaller, schwarzer, thomas.jarosch, vitalie.lazu
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andreas Pakulat 2007-12-06 19:19:22 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

As soon as the akregator mainwindow is closed the application is completely unusable. Its not possible to restore the mainwindow by left or right-clicking the icon in the systray.
Comment 1 ariellov 2008-07-12 16:49:03 UTC
I can confirm this bug. Happens in akregator 4.0.85-3.3 on openSUSE 11.0 and using kde 4.0.85 and Kontact. This bug doesn't happen when akregator is running alone without Kontact. So maybe it is Kontact bug. Only way I can open main window when using Kontact is to click on kmail icon when akregator window was already maximized in Kontact .
Comment 2 F Schuette 2008-07-27 10:50:55 UTC
I can confirm this bug with openSuSE 11.0 and KDE 4.1 RC1 (4.0.99.5).
I use akregator in conjunction with kontact. The system tray icon does show new messages, so I click on it to open the kontact window to show the messages.
Additional, if I click on the system tray icon for kmail, it does not show the main window either, but it starts kontact minimized. When I then restore the kontact window from the taskbar it shows the akregator component. I hope that helps in tracking down the bug.
Comment 3 Frederik Schwarzer 2008-10-29 16:04:51 UTC
Is this one still valid?
Comment 4 Javier 2008-11-20 15:40:01 UTC
I can confirm comment #1 on Akregator 1.3.1 on Kubuntu 8.10's KDE 4.1.2.

Also, if you opene Akregator first and then you open Kontact, clicking on the systray icon opens Akregator alone, but you can't access to Akregator part on Kontact.
Comment 5 Richard Bos 2009-01-02 16:06:40 UTC
I can confirm this problem on openSUSE_11.1 and kde-4.1.86 rpms.  When using
akregator alone, I see the following behaviour:
- open akregator on desktop 1
- move to desktop 2
- select akregator systray icon, nothing happens
- select the akregator systray icon once more:
  akregator is moved to the current desktop, and it is change in size.
  This is not the desired behaviour. The user should be brought to the desktop
  where akregator is (desktop-1 in this case).

When kontact is opened, nothing happens when clicking on the systray icon....
Comment 6 gabriele monfardini 2009-01-14 09:43:33 UTC
I confirm this bug on Akregator 1.3.50 (KDE 4.1.96).

In fact left-clicking on systray icon makes akregator window to compare but it immediately minimizes again. The global effect is a very short blinking

I instead have a different behavior w.r.t. #5
Left-clicking on the systray icon when Akregator is opened repaints the window exactly as it is. Can be better, but at least the windows doesn't move or change size. This happens when the window is either in desktop 1 or 2.

Comment 7 Frank Osterfeld 2009-01-23 16:14:58 UTC
I forgot: Please also tell me the akregator and kdepim version/revision you use, as well as your Qt version.
The reset on feed change was reported by a 4.5 snapshot user, which is suspicious.
Comment 8 Vitalie Lazu 2009-01-23 18:17:54 UTC
I fixed it by moving akregator to different desktop. Now it works as expected.
Comment 9 Richard Bos 2009-01-23 20:28:50 UTC
akregator 1.3.50
kdepim4-4.1.96
libqt4-4.4.3

It's still not working for me (akregator inside kontact, that is).
Comment 10 Alessandro Russo 2009-01-30 20:47:36 UTC
Akregator 1.4.0
Kde 4.2.0 from Kubuntu Intrepid

If I close the main window and I click on the systray icon the screen flash but no window appear. I need to right click on the systray and select "restore" (or a similar name, I'm using a localized version) to show the main window.
For me this is a new bug. Akregator worked perfectly in 4.1.4
Comment 11 Samuele C. 2009-01-31 19:39:52 UTC
kde 4.2.0 from kubuntu ppa repository on kubuntu 8.10
akregator and kontact package version: 4:4.2.0-0ubuntu1~intrepid~ppa3
kontact 1.4
liqtcore4 4.4.3-0ubuntu1.1

using akregator within kontact
akregator system tray icon only works with right click context menu; it doesn't minimize nor restore kontact. I just use kmail system tray icon to restore and minimize it.
I had the same problem in kde 4.1
Comment 12 Daniel Fuhrmann 2009-02-18 10:03:58 UTC
I have the same problem with the akregator system tray within kontact under 11.0 (kde 4.1+2) 11.1(kde4.1+2+3), and factory(kde4.2)
Restore: Only clicking on kmail tray restores the kontact window, but with the latest kontact component I used. Clicking on korganizer tray opens korganizer within contact. 
Minimiz: Only Clicking on Kmail systray minimizes kontact.
Should work like:
Clicking kmail tray open kmail within contact.
Clicking akregator tray open akregator within contact.
Comment 13 gabriele monfardini 2009-02-18 10:32:20 UTC
This bug seems fixed in KDE 4.2!
 
Now right-click menu doesn't offer "restore" anymore and left-click does restore and minimize correctly akregator.

I'm using kde 4:4.2.0-0ubuntu1~intrepid1~ppa2 on Kubuntu from repo "http://ppa.launchpad.net/kubuntu-experimental/ubuntu intrepid main"

After upgrading it needs to quit akregator and open it again to make it work as I described
Comment 14 Richard Bos 2009-02-18 21:32:38 UTC
@gabriele monfardini: which exact version of kde-4.2?

For me clicking on the rss icon, doesn't do a thing (except showing the context menu).  Perhaps it was solved in the last days, but if it wasn't, and I don't
see an svn commit update in this report, hence I assume it was not fixed, it
is still not working.  Perhaps a local kubuntu patch?
Comment 15 gabriele monfardini 2009-02-18 21:43:41 UTC
@Richard Bos
KDE version in About is "Version 4.2.00 (KDE 4.2.0)"

Right-click on the icon produce a menu with "Fetch all, Configure, Quit". Before 4.2 there was also the option to restore the main window.

Left-click on the icon toggles main window visibility (with the same position and dimension of last time it was opened). That is what I would expect to see.

This change happened I think in RC.
Comment 16 Samuele C. 2009-02-18 21:45:14 UTC
I have kubuntu (intrepid), with kde 4.2, but the bug isn't solved for me
Comment 17 Richard Bos 2009-02-18 21:50:42 UTC
Is this akregrator in kontact or standalone?
Comment 18 Samuele C. 2009-02-18 21:57:44 UTC
if you're asking me, it's akregator in kontact
standalone akregator works good
Comment 19 gabriele monfardini 2009-02-18 22:13:34 UTC
My akregator is also standalone so it appears that the bug is not solved only for akregator in Kontact
Comment 20 Médéric Boquien 2009-03-04 22:32:13 UTC
*** Bug 167360 has been marked as a duplicate of this bug. ***
Comment 21 Haakon Nilsen 2009-03-22 20:17:56 UTC
Strange, works for me as Gabriele describes. Both on 4.2.1 and trunk. I can't remember having had the problem with earlier versions, either.
Comment 22 Frank Osterfeld 2009-04-10 23:21:29 UTC
SVN commit 952087 by osterfeld:

fix minimize/restore behavior when clicking the tray icon
BUG:189181
BUG:153577
BUG:168845
BUG:173838
BUG:178084
BUG:185372

 M  +3 -32     akregator_part.cpp  
 M  +0 -4      akregator_part.h  
 M  +0 -6      mainwindow.cpp  
 M  +0 -1      mainwindow.h  
 M  +0 -9      trayicon.cpp  
 M  +0 -4      trayicon.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=952087