ResourceNodes: Fix inverted check in renamePrefix

The inversion happened in  ea2bb656cd

Change-Id: I999fc46be00e60b91a8790053c585e95fbcb7d17
Task-number: QTCREATORBUG-15099
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Daniel Teske
2015-09-24 12:18:34 +02:00
parent 905aa55543
commit 2bdf18fb7b

View File

@@ -398,7 +398,7 @@ bool ResourceFolderNode::renameFile(const QString &filePath, const QString &newF
bool ResourceFolderNode::renamePrefix(const QString &prefix, const QString &lang)
{
ResourceFile file(m_topLevelNode->path().toString());
if (file.load() == Core::IDocument::OpenResult::Success)
if (file.load() != Core::IDocument::OpenResult::Success)
return false;
int index = file.indexOfPrefix(m_prefix, m_lang);
if (index == -1)