diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp
index fb438ac57f8f0a4e9625c359b28daafdf198bdf8..389d1367934454b3ed50c0af41917f1124fbc829 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp
@@ -519,9 +519,9 @@ void MaemoDeployStep::installToSysroot()
             const QLatin1Char sep('/');
             const QString targetFilePath = toolChain()->sysrootRoot() + sep
                 + d.remoteDir + sep + QFileInfo(d.localFilePath).fileName();
-            if (!sysRootDir.mkpath(d.remoteDir.mid(1))
-                || !QFile::remove(targetFilePath)
-                || !QFile::copy(d.localFilePath, targetFilePath)) {
+            sysRootDir.mkpath(d.remoteDir.mid(1));
+            QFile::remove(targetFilePath);
+            if (!QFile::copy(d.localFilePath, targetFilePath)) {
                 writeOutput(tr("Sysroot installation failed: "
                     "Could not copy '%1' to '%2'. Continuing anyway.")
                     .arg(QDir::toNativeSeparators(d.localFilePath),