Commit aec48298 authored by Pekka Vuorela's avatar Pekka Vuorela

Use removeRecursively instead of executing rm -rf

parent 309ebecb
...@@ -79,7 +79,7 @@ Sandbox::~Sandbox() ...@@ -79,7 +79,7 @@ Sandbox::~Sandbox()
} }
if (!m_tempDir.isEmpty() && QFileInfo(m_tempDir).exists()) { if (!m_tempDir.isEmpty() && QFileInfo(m_tempDir).exists()) {
if (QProcess::execute("rm", QStringList() << "-rf" << m_tempDir) != 0) { if (!QDir(m_tempDir).removeRecursively()) {
qWarning("%s: Failed to remove temporary directory", Q_FUNC_INFO); qWarning("%s: Failed to remove temporary directory", Q_FUNC_INFO);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment