Starting from 5.8.2 Kmail resets the state of the main and status toolbar so that they are disabled on next start. In `kmali2rc` these toolbars are set to `disabled`. I can manually set them to `enable` but after I open and close Kmail, they are back to disabled again.
*** 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