From 9ba8276248493ee5277c1363e490c0fa117c204a Mon Sep 17 00:00:00 2001 From: ic005k Date: Sun, 4 Aug 2024 21:25:47 +0800 Subject: [PATCH] Update MainWindow.cpp --- src/MainWindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 0cbdfd79..1aa8385b 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -4206,6 +4206,15 @@ void MainWindow::on_actionBakFileList() { QStringList bakFileList = m_Preferences->getBakFilesList(); int bakCount = bakFileList.count(); + if (bakCount > 15) { + QString str = bakFileList.at(0); + QString fn = str.split("-===-").at(1); + QFile file(fn); + file.remove(); + bakFileList.removeAt(0); + bakCount = bakFileList.count(); + } + for (int i = 0; i < bakCount; i++) { QString action, bakfile; QString str = bakFileList.at(bakCount - 1 - i);