Mercurial > octave
diff libgui/src/m-editor/file-editor.h @ 25293:ae0518976e2b stable
open files in correct order when restoring editor session (bug #53711)
* file-editor.cc (restore_session): use integers instead of string
for sorting the tabs (avoiding 1 10 11 ... 2 3 ...)
* file-editor.h: struct session data with integer instead of string as index
author | Torsten <mttl@mailbox.org> |
---|---|
date | Sat, 21 Apr 2018 22:27:17 +0200 |
parents | 078b795c5219 |
children | c2a703df0215 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h Thu Apr 19 19:12:35 2018 -0700 +++ b/libgui/src/m-editor/file-editor.h Sat Apr 21 22:27:17 2018 +0200 @@ -77,7 +77,7 @@ // struct that allows to sort with respect to the tab index struct session_data { - QString index; + int index; QString file_name; QString encoding;