mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
Send local saves to recycle bin when switching from global to local saves instead of deleting them directly. (#2401)
This commit is contained in:
+1
-1
@@ -868,7 +868,7 @@ bool Profile::enableLocalSaves(bool enable)
|
||||
QDialogButtonBox::No | QDialogButtonBox::Yes | QDialogButtonBox::Cancel,
|
||||
QDialogButtonBox::No);
|
||||
if (res == QMessageBox::Yes) {
|
||||
shellDelete(QStringList(m_Directory.absoluteFilePath("saves")));
|
||||
shellDelete(QStringList(m_Directory.absoluteFilePath("saves")), true);
|
||||
} else if (res == QMessageBox::No) {
|
||||
// No action
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user