Commit 2bdf18fb authored by Daniel Teske's avatar Daniel Teske
Browse files

ResourceNodes: Fix inverted check in renamePrefix

The inversion happened in  ea2bb656

Change-Id: I999fc46be00e60b91a8790053c585e95fbcb7d17
Task-number: QTCREATORBUG-15099
Reviewed-by: default avatarEike Ziller <>
parent 905aa555
......@@ -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)
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