Remove 2 compiler warnings

This commit is contained in:
probonopd
2016-10-10 17:41:58 +02:00
parent 6da1cd49c0
commit 71e301f91a
+6 -3
View File
@@ -1116,8 +1116,9 @@ void createAppImage(const QString &appDirPath)
QFile appImage(appImagePath);
LogDebug() << "appImageName:" << appImagePath;
if (appImage.exists() && alwaysOwerwriteEnabled)
if (appImage.exists() && alwaysOwerwriteEnabled){
appImage.remove();
}
if (appImage.exists()) {
LogError() << "AppImage already exists, skipping .AppImage creation for" << appImage.fileName();
@@ -1157,10 +1158,12 @@ void createAppImage(const QString &appDirPath)
// AppImageAssistant doesn't always give nonzero error codes, so we check for the presence of the AppImage file
// This should eventually be fixed in AppImageAssistant
if (!QFile(appDirPath).exists()) {
if(appImageAssistant.readAllStandardOutput().isEmpty() == false)
if(appImageAssistant.readAllStandardOutput().isEmpty() == false) {
LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardOutput();
if(appImageAssistant.readAllStandardError().isEmpty() == false)
}
if(appImageAssistant.readAllStandardError().isEmpty() == false){
LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardError();
}
} else {
LogNormal() << "Created AppImage at" << appImagePath;
}