summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2018-06-20 16:17:29 +0200
committerGitHub <noreply@github.com>2018-06-20 16:17:29 +0200
commit4a765cc152060bc71230f49906a5be1bef739d50 (patch)
tree458579a6f83c5ed63001a6745931efd1f2c66b22 /src
parentb6aa12b323a81f4ac8e1bb76c2fea780a1698d97 (diff)
parent30f170c10d7838a855524c5466eb9d7ea70d34db (diff)
Merge pull request #410 from LostDragonist/Develop
Extend mod backups and load order backups to a maximum of 10
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 7ddd35c5..fc666a49 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4971,7 +4971,7 @@ bool MainWindow::createBackup(const QString &filePath, const QDateTime &time)
QString outPath = filePath + "." + time.toString(PATTERN_BACKUP_DATE);
if (shellCopy(QStringList(filePath), QStringList(outPath), this)) {
QFileInfo fileInfo(filePath);
- removeOldFiles(fileInfo.absolutePath(), fileInfo.fileName() + PATTERN_BACKUP_GLOB, 3, QDir::Name);
+ removeOldFiles(fileInfo.absolutePath(), fileInfo.fileName() + PATTERN_BACKUP_GLOB, 10, QDir::Name);
return true;
} else {
return false;