forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user