Never mark a document cleanly saved after .t42 export

Amendment to 7493c8f so that a document even with only one subpage will not
be marked as cleanly saved. This should reinforce the fact that only TTI
files will be guaranteed to store everything.
This commit is contained in:
G.K.MacGregor
2023-02-26 18:06:14 +00:00
parent 7493c8f527
commit c0670c8281

View File

@@ -1113,12 +1113,7 @@ void MainWindow::exportT42(bool fromAuto)
return; return;
} }
// Only mark as cleanly saved if the document was a single subpage MainWindow::prependToRecentFiles(exportFileName);
// otherwise the other subpages could be lost if not saved as TTI
if (m_textWidget->document()->numberOfSubPages() == 1) {
setCurrentFile(exportFileName);
} else
MainWindow::prependToRecentFiles(exportFileName);
m_exportAutoFileName = exportFileName; m_exportAutoFileName = exportFileName;
statusBar()->showMessage(tr("File exported"), 2000); statusBar()->showMessage(tr("File exported"), 2000);