summaryrefslogtreecommitdiff
path: root/src/profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile.cpp')
-rw-r--r--src/profile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profile.cpp b/src/profile.cpp
index 3da12d7d..e075a4e6 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -185,7 +185,7 @@ void Profile::writeModlistNow(bool onlyOnTimer) const
QString fileName = getModlistFileName();
if (QFile::exists(fileName)) {
- shellDelete(QStringList(fileName), false, QApplication::activeModalWidget());
+ shellDeleteQuiet(fileName);
}
if (!file.copy(fileName)) {
@@ -205,7 +205,7 @@ void Profile::createTweakedIniFile()
{
QString tweakedIni = m_Directory.absoluteFilePath("initweaks.ini");
- if (QFile::exists(tweakedIni) && !shellDelete(QStringList(tweakedIni))) {
+ if (QFile::exists(tweakedIni) && !shellDeleteQuiet(tweakedIni)) {
reportError(tr("failed to update tweaked ini file, wrong settings may be used: %1").arg(windowsErrorString(::GetLastError())));
return;
}