# HG changeset patch # User Markus Mützel # Date 1713367185 -7200 # Node ID 07f80a531690448eff33874719a5f46404c272d8 # Parent 3cf213d5b479bd08ed9fb4f5177ee757489c78f8# Parent 1edbab3fae48fa988ada1db2594cd38098a13793 maint: Merge stable to default. diff -r 3cf213d5b479 -r 07f80a531690 etc/NEWS.9.md --- a/etc/NEWS.9.md Tue Apr 16 15:06:46 2024 -0400 +++ b/etc/NEWS.9.md Wed Apr 17 17:19:45 2024 +0200 @@ -22,6 +22,10 @@ (bug #65518). - Set `DontUseNativeDialog` flag as first property in `QFileDialog`. - Explicitly raise non-modal message boxes ensuring visibility. +- Save and restore splitter state of documentation widget. +- Allow executing new files from built-in editor with F5 (bug #65548). +- Allow unbinding GUI shortcuts (bug #65580). +- Fix restoring headers in file browser and workspace view (bug #65030). ### Build system / Tests @@ -33,8 +37,8 @@ - Update metainfo.xml with new fields for AppStream 1.0 (bug #65355). - Show result of check for `std::pmr::polymorphic_allocator` in configure summary. -- Run test for polymorphic allocators if possible instead of a simple build - check. +- Run test program for polymorphic allocators if possible instead of a simple + build check. ### Documentation @@ -44,7 +48,7 @@ - Add example to Minimizers section on using anonymous functions to pass examples to functions called by minimizer functions (`fminsearch`, `fminbnd`, `fminunc`). -- Add application notes in `fminsearch`, `fminbnd`, `fminunc` indicated the +- Add application notes in `fminsearch`, `fminbnd`, `fminunc` indicating the preferred way to pass parameters is through anonymous functions. - Update remaining copyright statements to 2024. @@ -59,7 +63,7 @@ removed in Octave 10. The preferred, cross-platform compatible method of passing parameters to any of the minimization functions (including `fminsearch`, `fminbnd`, and `fminunc`) is through the use of Anonymous - Functions. Specific examples of this can be found in the @ref{Minimizers} + Functions. Specific examples of this can be found in the "Minimizers" section of the GNU Octave manual. diff -r 3cf213d5b479 -r 07f80a531690 libgui/src/files-dock-widget.cc --- a/libgui/src/files-dock-widget.cc Tue Apr 16 15:06:46 2024 -0400 +++ b/libgui/src/files-dock-widget.cc Wed Apr 17 17:19:45 2024 +0200 @@ -484,6 +484,16 @@ } void +files_dock_widget::restore_header_state () +{ + gui_settings settings; + + if (settings.contains (fb_column_state.settings_key ())) + m_file_tree_view->header ()->restoreState + (settings.value (fb_column_state.settings_key ()).toByteArray ()); +} + +void files_dock_widget::save_settings () { gui_settings settings; diff -r 3cf213d5b479 -r 07f80a531690 libgui/src/files-dock-widget.h diff -r 3cf213d5b479 -r 07f80a531690 libgui/src/workspace-view.cc --- a/libgui/src/workspace-view.cc Tue Apr 16 15:06:46 2024 -0400 +++ b/libgui/src/workspace-view.cc Wed Apr 17 17:19:45 2024 +0200 @@ -169,6 +169,16 @@ } void +workspace_view::restore_header_state () +{ + gui_settings settings; + + if (settings.contains (ws_column_state.settings_key ())) + m_view->horizontalHeader ()->restoreState + (settings.value (ws_column_state.settings_key ()).toByteArray ()); +} + +void workspace_view::setModel (workspace_model *model) { m_filter_model.setSourceModel (model);