Summary: | [Kmail] Main and status toolbars options not remembered | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Daimonion <pejakm> |
Component: | UI | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | asturm, faure, maxrd2, sigma343 |
Priority: | NOR | ||
Version: | 5.8.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kmail/814f0db2a1ae5b15bf91909ce80a5d6792f9aeed | Version Fixed In: | |
Sentry Crash Report: |
Description
Daimonion
2018-07-09 14:37:21 UTC
*** This bug has been marked as a duplicate of bug 395988 *** KMail does saveMainWindowSettings() from mainwindow destructor: https://cgit.kde.org/kmail.git/tree/src/kmmainwin.cpp#n99 That code should probably be moved to QMainWindow::closeEvent() void KMMainWin::closeEvent(QCloseEvent *event) { QMainWindow::closeEvent(event); if(event->isAccepted()) { ... saveMainWindowSettings() ... } } sorry i meant KMainWindow not QMainWindow Suggested fix https://phabricator.kde.org/D14454 Git commit 814f0db2a1ae5b15bf91909ce80a5d6792f9aeed by David Faure. Committed on 31/07/2018 at 13:46. Pushed by dfaure into branch 'Applications/18.08'. Port to setAutoSaveSettings so that saving happens before hiding. Summary: See d35a882895 in kxmlgui for more complete explanation. Related: bug 395988 Test Plan: kmail ; Alt+F4 ; kmail -> now the statusbar and toolbar are visible again Reviewers: ngraham, elvisangelaccio, broulik, cfeck, mlaurent Reviewed By: mlaurent Subscribers: kde-pim Tags: #kde_pim Differential Revision: https://phabricator.kde.org/D14454 M +1 -5 src/kmmainwin.cpp https://commits.kde.org/kmail/814f0db2a1ae5b15bf91909ce80a5d6792f9aeed |