comparison libgui/src/m-editor/file-editor.cc @ 31684:1f6bdbb5531b

maint: merge stable to default
author Rik <rik@octave.org>
date Thu, 22 Dec 2022 21:31:35 -0800
parents deb553ac2c54 74c18a1f357b
children 2422fb7f1e6c
comparison
equal deleted inserted replaced
31682:fa266de5efc1 31684:1f6bdbb5531b
1652 line, cond); 1652 line, cond);
1653 } 1653 }
1654 } 1654 }
1655 else 1655 else
1656 { 1656 {
1657 delete fileEditorTab; 1657 if (! reusing)
1658 fileEditorTab = nullptr; 1658 {
1659 delete fileEditorTab;
1660 fileEditorTab = nullptr;
1661 }
1659 1662
1660 if (QFile::exists (openFileName)) 1663 if (QFile::exists (openFileName))
1661 { 1664 {
1662 // File not readable: 1665 // File not readable:
1663 // create a NonModal message about error. 1666 // create a NonModal message about error.