The search settings fields in a second window are not being properly restored when that window is recreated. This may be related to bug 319761. This series of issues relating to search settings becomes frustrating for a user as it appears the settings are continually lost. Since a user will eventually close windows in a different order it all but guarantees search settings are eventually lost. Reproducible: Always Steps to Reproduce: 1. Open Kate 2. Open Search, enter a path/filter and perform a search 3. Open new window (I'd expect the existing search settings to be taken here, but perhaps this is a different issue) 4. Open search, enter a path/filter and perform a search 5. Close second window 6. Open new window 7. Open search and all settings are blank again Expected Results: Perhaps it'd be best if the search components just shared their state between all windows. I can't think of a good use-case where you'd want to have distinct settings per window. That is, the current settings are different, but the history in the dropdowns (path, filters, etc.) is the same. NOTE: It appears that old configuration date in the katerc files relating to search may affect the default state in new windows. I removed any mention of search from the share/config/katerc files.
Hmm.. I don't usually use the View->New Window, so I had not noticed this behaviour... I Have to investigate this...
I thought I could do something in the plugin, but this is a session config problem. At least for the search plugin, the new window gets readSessionConfig() for the default session in stead of the session of the "parent" MainWindow. The groupPrefix contains an incremented MainWindow number. All this means that we do not get the config of the wanted session. On the closing window front, writeSessionConfig() is not called at all for the second window... I'm not sure how this should be fixed...
Git commit efb1b383250f032fa85bb655a14530c6b2193bb7 by Kåre Särs. Committed on 16/07/2013 at 15:26. Pushed by sars into branch 'master'. Fix Session config for plugins in new MainWindows REVIEW: 110731 M +1 -1 kate/app/katemainwindow.cpp M +1 -2 kate/app/katepluginmanager.cpp http://commits.kde.org/kate/efb1b383250f032fa85bb655a14530c6b2193bb7