ResourceEditor: Make static code checker happy

Change-Id: Ic9a13a145c153a2fa2aeee61f4a97af274509a58
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2014-05-17 22:30:21 +02:00
parent d4aa0f2a64
commit 25e2d6aed0

View File

@@ -75,11 +75,13 @@ static bool addFilesToResource(const QString &resourceFile, const QStringList &f
if (notAdded)
notAdded->clear();
foreach (const QString &path, filePaths) {
if (file.contains(index, path))
if (file.contains(index, path)) {
if (notAdded)
*notAdded << path;
else
} else {
file.addFile(index, path);
}
}
Core::DocumentManager::expectFileChange(resourceFile);
file.save();