Commit 58cd2484 authored by Daniel Teske's avatar Daniel Teske

Clean up before building debugging helpers

Task-number: QTCREATORBUG-5532
Change-Id: Ic00b486c8bad9b7f4abc61cbd55893b236c4c8cc
Reviewed-on: http://codereview.qt.nokia.com/1880Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent db7f0ae8
......@@ -41,6 +41,7 @@
#include <utils/environment.h>
#include <utils/synchronousprocess.h>
#include <utils/fileutils.h>
#include <QtGui/QDesktopServices>
#include <QtCore/QDebug>
......@@ -128,6 +129,9 @@ bool BuildableHelperLibrary::copyFiles(const QString &sourcePath,
const QString &targetDirectory,
QString *errorMessage)
{
// try remove the directory
if (!FileUtils::removeRecursively(targetDirectory, errorMessage))
return false;
if (!QDir().mkpath(targetDirectory)) {
*errorMessage = QCoreApplication::translate("ProjectExplorer::DebuggingHelperLibrary", "The target directory %1 could not be created.").arg(targetDirectory);
return false;
......
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