Bug 324458

Summary: Trojita quit after last visible window is closed
Product: [Applications] trojita Reporter: Pali Rohár <pali.rohar>
Component: Desktop GUIAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Pali Rohár 2013-09-03 15:17:23 UTC
It is possible to minimalize trojita main window to systray and then main window act as hidden.
If you open new composer window, then minimalize trojita to systray and then close composer window (e.g. by close button or automatically when mail sent), trojita immediately quit. Same happen if trojita is in systray and some error message dialog will show. After closing dialog, trojia quit too.
Comment 1 Jan Kundrát 2013-09-04 08:02:19 UTC
Please go ahead and submit a patch for this. It is probably related to our (broken) handling of the "quit on last window close" flag.
Comment 2 Pali Rohár 2013-09-04 15:00:25 UTC
Git commit 61842237f0cc33922d9872097e824f011fc397b4 by Pali Rohár.
Committed on 04/09/2013 at 13:27.
Pushed by jkt into branch 'master'.

Do not quit application on last closed window when running in systray
REVIEW: 112515

M  +4    -0    src/Gui/Window.cpp

http://commits.kde.org/trojita/61842237f0cc33922d9872097e824f011fc397b4