Skip to content

Commit

Permalink
Update MainWindow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ic005k committed Aug 4, 2024
1 parent 5e842d7 commit 9ba8276
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9ba8276

Please sign in to comment.