From c0670c8281196980eef8799213b78ffbce1247ff Mon Sep 17 00:00:00 2001 From: "G.K.MacGregor" Date: Sun, 26 Feb 2023 18:06:14 +0000 Subject: [PATCH] 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. --- mainwindow.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d618f77..4df0278 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1113,12 +1113,7 @@ void MainWindow::exportT42(bool fromAuto) return; } - // Only mark as cleanly saved if the document was a single subpage - // otherwise the other subpages could be lost if not saved as TTI - if (m_textWidget->document()->numberOfSubPages() == 1) { - setCurrentFile(exportFileName); - } else - MainWindow::prependToRecentFiles(exportFileName); + MainWindow::prependToRecentFiles(exportFileName); m_exportAutoFileName = exportFileName; statusBar()->showMessage(tr("File exported"), 2000);